PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized_gist_sortsupport_2d()

Datum gserialized_gist_sortsupport_2d ( PG_FUNCTION_ARGS  )

Definition at line 1368 of file gserialized_gist_2d.c.

1369 {
1370  SortSupport ssup = (SortSupport)PG_GETARG_POINTER(0);
1371 
1372  ssup->comparator = gserialized_gist_cmp_full_2d;
1373  ssup->ssup_extra = NULL;
1374  /* Enable sortsupport only on 64 bit Datum */
1375  if (ssup->abbreviate && sizeof(Datum) == 8)
1376  {
1377  ssup->comparator = gserialized_gist_cmp_abbrev_2d;
1378  ssup->abbrev_converter = gserialized_gist_abbrev_convert_2d;
1379  ssup->abbrev_abort = gserialized_gist_abbrev_abort_2d;
1380  ssup->abbrev_full_comparator = gserialized_gist_cmp_full_2d;
1381  }
1382 
1383  PG_RETURN_VOID();
1384 }
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: