Content-Length: 258336 | pFad | http://github.com/postgrespro/postgres_cluster/commit/7e17a6889a4441c2cebca2dd47f4170ff8dc5de2

65 Set es_output_cid in replication worker · postgrespro/postgres_cluster@7e17a68 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/7e17a6889a4441c2cebca2dd47f4170ff8dc5de2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy