2589{
2591 int key_type;
2592 int att_num;
2593 Oid tbl_oid = PG_GETARG_DATUM(0);
2594 text *col = PG_GETARG_TEXT_P(1);
2595 Oid idx_oid;
2596
2597 if(!tbl_oid)
2598 PG_RETURN_NULL();
2599
2600
2601 postgis_initialize_cache(fcinfo);
2602
2604 if (!idx_oid)
2605 PG_RETURN_NULL();
2606
2608 if (!gbox)
2609 PG_RETURN_NULL();
2610 else
2611 PG_RETURN_POINTER(gbox);
2612}
static GBOX * spatial_index_read_extent(Oid idx_oid, int key_type, int att_num)
static Oid table_get_spatial_index(Oid tbl_oid, text *col, int *key_type, int *att_num)