Skip to content

Commit 7e17a68

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 16827d4 commit 7e17a68

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy