PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_cmp_full()

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

Definition at line 154 of file lwgeom_btree.c.

155 {
156  GSERIALIZED *g1 = (GSERIALIZED *)PG_DETOAST_DATUM(x);
157  GSERIALIZED *g2 = (GSERIALIZED *)PG_DETOAST_DATUM(y);
158  int ret = gserialized_cmp(g1, g2);
161  return ret;
162 }
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:313
#define POSTGIS_FREE_IF_COPY_P(ptrsrc, ptrori)
Definition: lwinline.h:235

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: