mirror of
https://github.com/postgres/postgres.git
synced 2026-02-11 23:03:25 -05:00
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>
This commit is contained in:
parent
16827d4424
commit
7e17a6889a
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue