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

◆ gserialized_gist_sortsupport_2d()

Datum gserialized_gist_sortsupport_2d ( PG_FUNCTION_ARGS  )

Definition at line 1387 of file gserialized_gist_2d.c.

1388{
1389 SortSupport ssup = (SortSupport)PG_GETARG_POINTER(0);
1390
1391 ssup->comparator = gserialized_gist_cmp_full_2d;
1392 ssup->ssup_extra = NULL;
1393 /* Enable sortsupport only on 64 bit Datum */
1394 if (ssup->abbreviate && sizeof(Datum) == 8)
1395 {
1396 ssup->comparator = gserialized_gist_cmp_abbrev_2d;
1397 ssup->abbrev_converter = gserialized_gist_abbrev_convert_2d;
1398 ssup->abbrev_abort = gserialized_gist_abbrev_abort_2d;
1399 ssup->abbrev_full_comparator = gserialized_gist_cmp_full_2d;
1400 }
1401
1402 PG_RETURN_VOID();
1403}
static Datum gserialized_gist_abbrev_convert_2d(Datum original, SortSupport ssup)
static int gserialized_gist_cmp_abbrev_2d(Datum x, Datum y, SortSupport ssup)
static int gserialized_gist_cmp_full_2d(Datum a, Datum b, SortSupport ssup)
static bool gserialized_gist_abbrev_abort_2d(int memtupcount, SortSupport ssup)

References gserialized_gist_abbrev_abort_2d(), gserialized_gist_abbrev_convert_2d(), gserialized_gist_cmp_abbrev_2d(), and gserialized_gist_cmp_full_2d().

Here is the call graph for this function: