Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7015bb3

Browse files
Set es_output_cid in replication worker
Allows triggers to operate correctly Author: Petr Jelinek <petr.jelinek@2ndquadrant.com> Reported-by: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
1 parent 6448704 commit 7015bb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/replication/logical/worker.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ create_estate_for_relation(LogicalRepRelMapEntry *rel)
204204
estate->es_num_result_relations = 1;
205205
estate->es_result_relation_info = resultRelInfo;
206206

207+
estate->es_output_cid = GetCurrentCommandId(true);
208+
207209
/* Triggers might need a slot */
208210
if (resultRelInfo->ri_TrigDesc)
209211
estate->es_trig_tuple_slot = ExecInitExtraTupleSlot(estate);

0 commit comments

Comments
 (0)