PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_abbrev_convert()

static Datum lwgeom_abbrev_convert ( Datum  original,
SortSupport  ssup 
)
static

Definition at line 168 of file lwgeom_btree.c.

169 {
170  GSERIALIZED *g = (GSERIALIZED *)PG_DETOAST_DATUM(original);
171  uint64_t hash = gserialized_get_sortable_hash(g);
172  POSTGIS_FREE_IF_COPY_P(g, original);
173  return hash;
174 }
uint64_t gserialized_get_sortable_hash(const GSERIALIZED *g)
Return a sortable key based on gserialized.
Definition: gserialized.c:419
#define POSTGIS_FREE_IF_COPY_P(ptrsrc, ptrori)
Definition: lwinline.h:340

References gserialized_get_sortable_hash(), and POSTGIS_FREE_IF_COPY_P.

Referenced by lwgeom_sortsupport().

Here is the call graph for this function:
Here is the caller graph for this function: