summaryrefslogtreecommitdiff
path: root/src/backend/executor/execReplication.c
diff options
context:
space:
mode:
authorAndrew Gierth <rhodiumtoad@postgresql.org>2017-06-28 18:55:03 +0100
committerAndrew Gierth <rhodiumtoad@postgresql.org>2017-06-28 18:55:03 +0100
commit501ed02cf6f4f60c3357775eb07578aebc912d3a (patch)
tree6811c9e9181dfff5ae384b9ec69994de2b777a2b /src/backend/executor/execReplication.c
parent99255d73c07c89b69be028a1a7b8027a78befed4 (diff)
Fix transition tables for partition/inheritance.
We disallow row-level triggers with transition tables on child tables. Transition tables for triggers on the parent table contain only those columns present in the parent. (We can't mix tuple formats in a single transition table.) Patch by Thomas Munro Discussion: https://postgr.es/m/CA%2BTgmoZzTBBAsEUh4MazAN7ga%3D8SsMC-Knp-6cetts9yNZUCcg%40mail.gmail.com
Diffstat (limited to 'src/backend/executor/execReplication.c')
-rw-r--r--src/backend/executor/execReplication.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/execReplication.c b/src/backend/executor/execReplication.c
index 59f14e997f5..36960eaa7e8 100644
--- a/src/backend/executor/execReplication.c
+++ b/src/backend/executor/execReplication.c
@@ -417,7 +417,7 @@ ExecSimpleRelationInsert(EState *estate, TupleTableSlot *slot)
/* AFTER ROW INSERT Triggers */
ExecARInsertTriggers(estate, resultRelInfo, tuple,
- recheckIndexes);
+ recheckIndexes, NULL);
list_free(recheckIndexes);
}
@@ -479,7 +479,7 @@ ExecSimpleRelationUpdate(EState *estate, EPQState *epqstate,
/* AFTER ROW UPDATE Triggers */
ExecARUpdateTriggers(estate, resultRelInfo,
&searchslot->tts_tuple->t_self,
- NULL, tuple, recheckIndexes);
+ NULL, tuple, recheckIndexes, NULL);
list_free(recheckIndexes);
}
@@ -522,7 +522,7 @@ ExecSimpleRelationDelete(EState *estate, EPQState *epqstate,
/* AFTER ROW DELETE Triggers */
ExecARDeleteTriggers(estate, resultRelInfo,
- &searchslot->tts_tuple->t_self, NULL);
+ &searchslot->tts_tuple->t_self, NULL, NULL);
list_free(recheckIndexes);
}