]> granicus.if.org Git - postgresql/commitdiff
Execute SET TRANSACTION SNAPSHOT during pg_dump
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 6 May 2013 14:37:17 +0000 (15:37 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 6 May 2013 14:37:17 +0000 (15:37 +0100)
Previous coding set the SQL buffer but never executed

Bug noted by me during beta testing

src/bin/pg_dump/pg_dump.c

index 007b0865eb506fc8a8263974c09cc44b7986ac71..9ecfd0c6aacc31a7423dd0a441986cc832bb94e9 100644 (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