2376{
2378 int key_type;
2379 int16 att_num, idx_att_num = InvalidAttrNumber;
2380 Oid tbl_oid = PG_GETARG_DATUM(0);
2381 char *col = text_to_cstring(PG_GETARG_TEXT_P(1));
2382 Oid idx_oid;
2383
2384 if(!tbl_oid)
2385 PG_RETURN_NULL();
2386
2387
2388 postgis_initialize_cache();
2389
2390 att_num = get_attnum(tbl_oid, col);
2391 if (att_num == InvalidAttrNumber)
2392 PG_RETURN_NULL();
2393
2395 if (!idx_oid)
2396 PG_RETURN_NULL();
2397
2399 if (!gbox)
2400 PG_RETURN_NULL();
2401 else
2402 PG_RETURN_POINTER(gbox);
2403}
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)