PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ _postgis_gserialized_index_extent()

Datum _postgis_gserialized_index_extent ( PG_FUNCTION_ARGS  )

Definition at line 2580 of file gserialized_estimate.c.

References spatial_index_read_extent(), and table_get_spatial_index().

Referenced by spatial_index_read_extent().

2581 {
2582  GBOX *gbox = NULL;
2583  int key_type;
2584  Oid tbl_oid = PG_GETARG_DATUM(0);
2585  text *col = PG_GETARG_TEXT_P(1);
2586 
2587  Oid idx_oid = table_get_spatial_index(tbl_oid, col, &key_type);
2588  if (!idx_oid)
2589  PG_RETURN_NULL();
2590 
2591  gbox = spatial_index_read_extent(idx_oid, key_type);
2592  if (!gbox)
2593  PG_RETURN_NULL();
2594  else
2595  PG_RETURN_POINTER(gbox);
2596 }
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: