PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ _postgis_gserialized_index_extent()

Datum _postgis_gserialized_index_extent ( PG_FUNCTION_ARGS  )

Definition at line 2564 of file gserialized_estimate.c.

References spatial_index_read_extent(), and table_get_spatial_index().

Referenced by spatial_index_read_extent().

2565 {
2566  GBOX *gbox = NULL;
2567  int key_type;
2568  Oid tbl_oid = PG_GETARG_DATUM(0);
2569  text *col = PG_GETARG_TEXT_P(1);
2570 
2571  Oid idx_oid = table_get_spatial_index(tbl_oid, col, &key_type);
2572  if (!idx_oid)
2573  PG_RETURN_NULL();
2574 
2575  gbox = spatial_index_read_extent(idx_oid, key_type);
2576  if (!gbox)
2577  PG_RETURN_NULL();
2578  else
2579  PG_RETURN_POINTER(gbox);
2580 }
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:
Here is the caller graph for this function: