PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_cmp_full()

static int lwgeom_cmp_full ( Datum  x,
Datum  y,
SortSupport  ssup 
)
static

Definition at line 151 of file lwgeom_btree.c.

152 {
153  GSERIALIZED *g1 = (GSERIALIZED *)PG_DETOAST_DATUM(x);
154  GSERIALIZED *g2 = (GSERIALIZED *)PG_DETOAST_DATUM(y);
155  int ret = gserialized_cmp(g1, g2);
158  return ret;
159 }
int gserialized_cmp(const GSERIALIZED *g1, const GSERIALIZED *g2)
Return -1 if g1 is "less than" g2, 1 if g1 is "greater than" g2 and 0 if g1 and g2 are the "same".
Definition: gserialized.c:342
#define POSTGIS_FREE_IF_COPY_P(ptrsrc, ptrori)
Definition: lwinline.h:340

References gserialized_cmp(), POSTGIS_FREE_IF_COPY_P, pixval::x, and pixval::y.

Referenced by lwgeom_sortsupport().

Here is the call graph for this function:
Here is the caller graph for this function: