PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@
brin_common.c
Go to the documentation of this file.
1 #include "postgis_brin.h"
2 
3 bool
5 {
6  GSERIALIZED *geom = (GSERIALIZED*)PG_DETOAST_DATUM(the_datum);
7 
8  if (gserialized_is_empty(geom) == LW_TRUE)
9  return true;
10  else
11  return false;
12 }
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
Definition: g_serialized.c:178
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
bool is_gserialized_from_datum_empty(Datum the_datum)
Definition: brin_common.c:4