PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _postgis_gserialized_index_extent()

Datum _postgis_gserialized_index_extent ( PG_FUNCTION_ARGS  )

Definition at line 2574 of file gserialized_estimate.c.

2575 {
2576  GBOX *gbox = NULL;
2577  int key_type;
2578  Oid tbl_oid = PG_GETARG_DATUM(0);
2579  text *col = PG_GETARG_TEXT_P(1);
2580 
2581  Oid idx_oid = table_get_spatial_index(tbl_oid, col, &key_type);
2582  if (!idx_oid)
2583  PG_RETURN_NULL();
2584 
2585  gbox = spatial_index_read_extent(idx_oid, key_type);
2586  if (!gbox)
2587  PG_RETURN_NULL();
2588  else
2589  PG_RETURN_POINTER(gbox);
2590 }
static GBOX * spatial_index_read_extent(Oid idx_oid, int key_type)
static Oid table_get_spatial_index(Oid tbl_oid, text *col, int *key_type)

References spatial_index_read_extent(), and table_get_spatial_index().

Here is the call graph for this function: