PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_abbrev_convert()

static Datum lwgeom_abbrev_convert ( Datum  original,
SortSupport  ssup 
)
static

Definition at line 171 of file lwgeom_btree.c.

172 {
173  GSERIALIZED *g = (GSERIALIZED *)PG_DETOAST_DATUM(original);
174  uint64_t hash = gserialized_get_sortable_hash(g);
175  POSTGIS_FREE_IF_COPY_P(g, original);
176  return hash;
177 }
uint64_t gserialized_get_sortable_hash(const GSERIALIZED *g)
Return a sortable key based on gserialized.
Definition: gserialized.c:391
#define POSTGIS_FREE_IF_COPY_P(ptrsrc, ptrori)
Definition: lwinline.h:235

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: