Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e17a68

Browse files
Set es_output_cid in replication worker
Allows triggers to operate correctlyAuthor: Petr Jelinek <petr.jelinek@2ndquadrant.com>Reported-by: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
1 parent16827d4 commit7e17a68

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)

[8]ページ先頭

©2009-2025 Movatter.jp