mirror of https://github.com/citusdata/citus.git
PG15: Handle extra argument to ExecARDeleteTriggers.
Account for PG commit ba9a7e3921. Introduce ExecARDeleteTriggers_compat.pull/5920/head
parent
f944722c6a
commit
ac952b2cc2
|
@ -1433,7 +1433,7 @@ DeleteTupleAndEnforceConstraints(ModifyState *state, HeapTuple heapTuple)
|
|||
simple_heap_delete(state->rel, tid);
|
||||
|
||||
/* execute AFTER ROW DELETE Triggers to enforce constraints */
|
||||
ExecARDeleteTriggers(estate, resultRelInfo, tid, NULL, NULL);
|
||||
ExecARDeleteTriggers_compat(estate, resultRelInfo, tid, NULL, NULL, false);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,14 @@
|
|||
|
||||
#include "distributed/pg_version_constants.h"
|
||||
|
||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||
#define ExecARDeleteTriggers_compat(a, b, c, d, e, f) \
|
||||
ExecARDeleteTriggers(a, b, c, d, e, f)
|
||||
#else
|
||||
#define ExecARDeleteTriggers_compat(a, b, c, d, e, f) \
|
||||
ExecARDeleteTriggers(a, b, c, d, e)
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||
#define ColumnarProcessUtility_compat(a, b, c, d, e, f, g, h) \
|
||||
ColumnarProcessUtility(a, b, c, d, e, f, g, h)
|
||||
|
|
Loading…
Reference in New Issue