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

◆ value_union_transfn()

Set * value_union_transfn ( Set state,
Datum  value,
meosType  basetype 
)

Transition function for set union aggregate of values.

Parameters
[in,out]stateCurrent aggregate state
[in]valueValue
[in]basetypeType of the value
Returns
When the state variable has space for adding the new value, the function returns the current state variable. Otherwise, a NEW state variable is returned and the input state is freed.
Note
Always use the function to overwrite the existing state as in:
state = value_union_transfn(state, value, basetype);
Set * value_union_transfn(Set *state, Datum value, meosType basetype)
Transition function for set union aggregate of values.
Definition: set_aggfuncs_meos.c:206
Definition: pgtz.h:42