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

Commitcf65201

Browse files
committed
Get a snapshot before COPY in table sync
This fixes a crash if the local table has a function index and thefunction makes non-immutable calls.Reported-by: Scott Milliken <scott@deltaex.com>Author: Masahiko Sawada <sawada.mshk@gmail.com>
1 parentf352f91 commitcf65201

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/replication/logical/tablesync.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,9 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
917917
walrcv_create_slot(wrconn,slotname, true,
918918
CRS_USE_SNAPSHOT,origin_startpos);
919919

920+
PushActiveSnapshot(GetTransactionSnapshot());
920921
copy_table(rel);
922+
PopActiveSnapshot();
921923

922924
res=walrcv_exec(wrconn,"COMMIT",0,NULL);
923925
if (res->status!=WALRCV_OK_COMMAND)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp