Skip to content

Commit b2ad82d

Browse files
Execute SET TRANSACTION SNAPSHOT during pg_dump
Previous coding set the SQL buffer but never executed Bug noted by me during beta testing
1 parent 8b06e6a commit b2ad82d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ setup_connection(Archive *AH, const char *dumpencoding, char *use_role)
10341034

10351035
appendPQExpBuffer(query, "SET TRANSACTION SNAPSHOT ");
10361036
appendStringLiteralConn(query, AH->sync_snapshot_id, conn);
1037+
ExecuteSqlStatement(AH, query->data);
10371038
destroyPQExpBuffer(query);
10381039
}
10391040
else

0 commit comments

Comments
 (0)