PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum _postgis_gserialized_index_extent ( PG_FUNCTION_ARGS  )

Definition at line 2555 of file gserialized_estimate.c.

References spatial_index_read_extent(), and table_get_spatial_index().

2556 {
2557  GBOX *gbox = NULL;
2558  int key_type;
2559  Oid tbl_oid = PG_GETARG_DATUM(0);
2560  text *col = PG_GETARG_TEXT_P(1);
2561 
2562  Oid idx_oid = table_get_spatial_index(tbl_oid, col, &key_type);
2563  if (!idx_oid)
2564  PG_RETURN_NULL();
2565 
2566  gbox = spatial_index_read_extent(idx_oid, key_type);
2567  if (!gbox)
2568  PG_RETURN_NULL();
2569  else
2570  PG_RETURN_POINTER(gbox);
2571 }
static Oid table_get_spatial_index(Oid tbl_oid, text *col, int *key_type)
static GBOX * spatial_index_read_extent(Oid idx_oid, int key_type)

Here is the call graph for this function: