PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ RASTER_memsize()

Datum RASTER_memsize ( PG_FUNCTION_ARGS  )

find the detoasted size of a value

Definition at line 142 of file rtpg_utility.c.

143 {
144  void *detoasted = PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
145  size_t size = VARSIZE(detoasted);
146  PG_FREE_IF_COPY(detoasted,0);
147  PG_RETURN_INT32(size);
148 }