mirror of https://github.com/citusdata/citus.git
fixup! Introduces ExecSimpleRelationInsert_compat and modifyStateResultRelInfo macros
parent
32c2d138fc
commit
1ed8c1d4e5
|
@ -1196,7 +1196,7 @@ static void
|
|||
DeleteTupleAndEnforceConstraints(ModifyState *state, HeapTuple heapTuple)
|
||||
{
|
||||
EState *estate = state->estate;
|
||||
ResultRelInfo *resultRelInfo = modifyStateResultRelInfo(state);
|
||||
ResultRelInfo *resultRelInfo = modifyStateResultRelInfo_compat(state);
|
||||
|
||||
ItemPointer tid = &(heapTuple->t_self);
|
||||
simple_heap_delete(state->rel, tid);
|
||||
|
@ -1212,7 +1212,7 @@ DeleteTupleAndEnforceConstraints(ModifyState *state, HeapTuple heapTuple)
|
|||
static void
|
||||
FinishModifyRelation(ModifyState *state)
|
||||
{
|
||||
ExecCloseIndices(modifyStateResultRelInfo(state));
|
||||
ExecCloseIndices(modifyStateResultRelInfo_compat(state));
|
||||
|
||||
AfterTriggerEndQuery(state->estate);
|
||||
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
GetOldestNonRemovableTransactionId(a)
|
||||
#define ExecSimpleRelationInsert_compat(a, b, c) \
|
||||
ExecSimpleRelationInsert(a, b, c)
|
||||
#define modifyStateResultRelInfo(a) ((a)->resultRelInfo)
|
||||
#define modifyStateResultRelInfo_compat(a) ((a)->resultRelInfo)
|
||||
#define index_insert_compat(a, b, c, d, e, f, g, h) \
|
||||
index_insert(a, b, c, d, e, f, g, h)
|
||||
#else
|
||||
|
@ -34,7 +34,7 @@
|
|||
#define GetOldestNonRemovableTransactionId_compat(a, b) GetOldestXmin(a, b)
|
||||
#define ExecSimpleRelationInsert_compat(a, b, c) \
|
||||
ExecSimpleRelationInsert(b, c)
|
||||
#define modifyStateResultRelInfo(a) ((a)->estate->es_result_relation_info)
|
||||
#define modifyStateResultRelInfo_compat(a) ((a)->estate->es_result_relation_info)
|
||||
#define index_insert_compat(a, b, c, d, e, f, g, h) \
|
||||
index_insert(a, b, c, d, e, f, h)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue