MobilityDB  1.0

◆ DATUM_FREE_IF_COPY

#define DATUM_FREE_IF_COPY (   value,
  basetypid,
 
)
Value:
do { \
if (! base_type_byvalue(basetypid) && DatumGetPointer(value) != PG_GETARG_POINTER(n)) \
pfree(DatumGetPointer(value)); \
} while (0)
bool base_type_byvalue(Oid basetypid)
Returns true if the values of the type are passed by value.
Definition: temporal_util.c:125