projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16827d4
)
Set es_output_cid in replication worker
author
Simon Riggs
Wed, 22 Nov 2017 05:28:14 +0000
(16:28 +1100)
committer
Simon Riggs
Wed, 22 Nov 2017 05:28:14 +0000
(16:28 +1100)
Allows triggers to operate correctly
Author: Petr Jelinek
Reported-by: Konstantin Knizhnik
src/backend/replication/logical/worker.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/logical/worker.c
b/src/backend/replication/logical/worker.c
index 0e68670767ae566fdc0018e4a7bc761800da8e71..fa5d9bb12019a3821f8860f2231b8b1714e3d5cc 100644
(file)
--- a/
src/backend/replication/logical/worker.c
+++ b/
src/backend/replication/logical/worker.c
@@
-204,6
+204,8
@@
create_estate_for_relation(LogicalRepRelMapEntry *rel)
estate->es_num_result_relations = 1;
estate->es_result_relation_info = resultRelInfo;
+ estate->es_output_cid = GetCurrentCommandId(true);
+
/* Triggers might need a slot */
if (resultRelInfo->ri_TrigDesc)
estate->es_trig_tuple_slot = ExecInitExtraTupleSlot(estate);