mirror of
https://github.com/postgres/postgres.git
synced 2025-05-23 00:02:38 -04: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 ");
|
appendPQExpBuffer(query, "SET TRANSACTION SNAPSHOT ");
|
||||||
appendStringLiteralConn(query, AH->sync_snapshot_id, conn);
|
appendStringLiteralConn(query, AH->sync_snapshot_id, conn);
|
||||||
|
ExecuteSqlStatement(AH, query->data);
|
||||||
destroyPQExpBuffer(query);
|
destroyPQExpBuffer(query);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user