2380{
2382 int key_type;
2383 int16 att_num, idx_att_num = InvalidAttrNumber;
2384 Oid tbl_oid = PG_GETARG_DATUM(0);
2385 char *col = text_to_cstring(PG_GETARG_TEXT_P(1));
2386 Oid idx_oid;
2387
2388 if(!tbl_oid)
2389 PG_RETURN_NULL();
2390
2391
2392 postgis_initialize_cache();
2393
2394 att_num = get_attnum(tbl_oid, col);
2395 if (att_num == InvalidAttrNumber)
2396 PG_RETURN_NULL();
2397
2399 if (!idx_oid)
2400 PG_RETURN_NULL();
2401
2403 if (!gbox)
2404 PG_RETURN_NULL();
2405 else
2406 PG_RETURN_POINTER(gbox);
2407}
static GBOX * spatial_index_read_extent(Oid idx_oid, int idx_att_num, int key_type)
static Oid table_get_spatial_index(Oid tbl_oid, int16 attnum, int *key_type, int16 *idx_attnum)