PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_sortsupport()

Datum lwgeom_sortsupport ( PG_FUNCTION_ARGS  )

Definition at line 183 of file lwgeom_btree.c.

184{
185 SortSupport ssup = (SortSupport)PG_GETARG_POINTER(0);
186
187 ssup->comparator = lwgeom_cmp_full;
188 ssup->ssup_extra = NULL;
189 /* Enable sortsupport only on 64 bit Datum */
190 if (ssup->abbreviate && sizeof(Datum) == 8)
191 {
192 ssup->comparator = lwgeom_cmp_abbrev;
193 ssup->abbrev_converter = lwgeom_abbrev_convert;
194 ssup->abbrev_abort = lwgeom_abbrev_abort;
195 ssup->abbrev_full_comparator = lwgeom_cmp_full;
196 }
197
198 PG_RETURN_VOID();
199}
static bool lwgeom_abbrev_abort(int memtupcount, SortSupport ssup)
static int lwgeom_cmp_abbrev(Datum x, Datum y, SortSupport ssup)
static Datum lwgeom_abbrev_convert(Datum original, SortSupport ssup)
static int lwgeom_cmp_full(Datum x, Datum y, SortSupport ssup)

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

Here is the call graph for this function: