MobilityDB 1.3
Loading...
Searching...
No Matches

◆ INPUT_AGG_TRANS_STATE_ARG

#define INPUT_AGG_TRANS_STATE_ARG (   fcinfo,
  state 
)
Value:
do { \
MemoryContext ctx = set_aggregation_context(fcinfo); \
state = PG_ARGISNULL(0) ? NULL : (SkipList *) PG_GETARG_SKIPLIST_P(0); \
if (PG_ARGISNULL(1) || PG_ARGISNULL(2)) \
{ \
if (state) \
PG_RETURN_SKIPLIST_P(state); \
else \
PG_RETURN_NULL(); \
} \
unset_aggregation_context(ctx); \
} while (0)
#define PG_GETARG_SKIPLIST_P(n)
Definition: skiplist.h:49
MemoryContext set_aggregation_context(FunctionCallInfo fcinfo)
Switch to the memory context for aggregation.
Definition: skiplist.c:55
Structure to represent skiplists that keep the current state of an aggregation.
Definition: meos.h:272
Definition: pgtz.h:42

Helper macro to input the current aggregate state.