Commit 7e17a688 authored by Simon Riggs's avatar Simon Riggs

Set es_output_cid in replication worker

Allows triggers to operate correctly

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reported-by: default avatarKonstantin Knizhnik <k.knizhnik@postgrespro.ru>
parent 16827d44
...@@ -204,6 +204,8 @@ create_estate_for_relation(LogicalRepRelMapEntry *rel) ...@@ -204,6 +204,8 @@ create_estate_for_relation(LogicalRepRelMapEntry *rel)
estate->es_num_result_relations = 1; estate->es_num_result_relations = 1;
estate->es_result_relation_info = resultRelInfo; estate->es_result_relation_info = resultRelInfo;
estate->es_output_cid = GetCurrentCommandId(true);
/* Triggers might need a slot */ /* Triggers might need a slot */
if (resultRelInfo->ri_TrigDesc) if (resultRelInfo->ri_TrigDesc)
estate->es_trig_tuple_slot = ExecInitExtraTupleSlot(estate); estate->es_trig_tuple_slot = ExecInitExtraTupleSlot(estate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment