PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_sortsupport()

Datum lwgeom_sortsupport ( PG_FUNCTION_ARGS  )

Definition at line 180 of file lwgeom_btree.c.

181 {
182  SortSupport ssup = (SortSupport)PG_GETARG_POINTER(0);
183 
184  ssup->comparator = lwgeom_cmp_full;
185  ssup->ssup_extra = NULL;
186  /* Enable sortsupport only on 64 bit Datum */
187  if (ssup->abbreviate && sizeof(Datum) == 8)
188  {
189  ssup->comparator = lwgeom_cmp_abbrev;
190  ssup->abbrev_converter = lwgeom_abbrev_convert;
191  ssup->abbrev_abort = lwgeom_abbrev_abort;
192  ssup->abbrev_full_comparator = lwgeom_cmp_full;
193  }
194 
195  PG_RETURN_VOID();
196 }
static bool lwgeom_abbrev_abort(int memtupcount, SortSupport ssup)
Definition: lwgeom_btree.c:162
static int lwgeom_cmp_abbrev(Datum x, Datum y, SortSupport ssup)
Definition: lwgeom_btree.c:139
static Datum lwgeom_abbrev_convert(Datum original, SortSupport ssup)
Definition: lwgeom_btree.c:168
static int lwgeom_cmp_full(Datum x, Datum y, SortSupport ssup)
Definition: lwgeom_btree.c:151

References lwgeom_abbrev_abort(), lwgeom_abbrev_convert(), lwgeom_cmp_abbrev(), and lwgeom_cmp_full().

Here is the call graph for this function: