PostGIS  2.5.7dev-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.

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 }