PG15: Handle extra argument to ExecARDeleteTriggers.

Account for PG commit ba9a7e3921. Introduce
ExecARDeleteTriggers_compat.
pull/5920/head
Jeff Davis 2022-04-09 10:49:44 -07:00 committed by jeff-davis
parent f944722c6a
commit ac952b2cc2
2 changed files with 9 additions and 1 deletions

View File

@ -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);
}

View File

@ -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)