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:
Simon Riggs 2013-05-06 15:37:17 +01:00
parent 8b06e6aba8
commit b2ad82dafa

View File

@ -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