PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ RASTER_memsize()

Datum RASTER_memsize ( PG_FUNCTION_ARGS  )

find the detoasted size of a value

Definition at line 138 of file rtpg_utility.c.

Referenced by RASTER_minPossibleValue().

139 {
140  void *detoasted = PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
141  size_t size = VARSIZE(detoasted);
142  PG_FREE_IF_COPY(detoasted,0);
143  PG_RETURN_INT32(size);
144 }
Here is the caller graph for this function: