PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_gist_sortsupport_2d()

Datum gserialized_gist_sortsupport_2d ( PG_FUNCTION_ARGS  )

Definition at line 1408 of file gserialized_gist_2d.c.

1409 {
1410  SortSupport ssup = (SortSupport)PG_GETARG_POINTER(0);
1411 
1412  ssup->comparator = gserialized_gist_cmp_full_2d;
1413  ssup->ssup_extra = NULL;
1414  /* Enable sortsupport only on 64 bit Datum */
1415  if (ssup->abbreviate && sizeof(Datum) == 8)
1416  {
1417  ssup->comparator = gserialized_gist_cmp_abbrev_2d;
1418  ssup->abbrev_converter = gserialized_gist_abbrev_convert_2d;
1419  ssup->abbrev_abort = gserialized_gist_abbrev_abort_2d;
1420  ssup->abbrev_full_comparator = gserialized_gist_cmp_full_2d;
1421  }
1422 
1423  PG_RETURN_VOID();
1424 }
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: