projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6448704
)
Set es_output_cid in replication worker
author
Simon Riggs
Tue, 28 Nov 2017 09:37:22 +0000
(09:37 +0000)
committer
Simon Riggs
Tue, 28 Nov 2017 09:37:22 +0000
(09:37 +0000)
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 eedc3a8816bc2f157e62a664bcc57b5f87530be9..e46a62e1990c0e1181bf88f8aa940e063bdb393e 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);