mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Execute SET TRANSACTION SNAPSHOT during pg_dump
Previous coding set the SQL buffer but never executed Bug noted by me during beta testing
This commit is contained in:
parent
8b06e6aba8
commit
b2ad82dafa
@ -1034,6 +1034,7 @@ setup_connection(Archive *AH, const char *dumpencoding, char *use_role)
|
||||
|
||||
appendPQExpBuffer(query, "SET TRANSACTION SNAPSHOT ");
|
||||
appendStringLiteralConn(query, AH->sync_snapshot_id, conn);
|
||||
ExecuteSqlStatement(AH, query->data);
|
||||
destroyPQExpBuffer(query);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user