diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 9b71c75c334..6295b5bf2cc 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -618,7 +618,14 @@ main(int argc, char **argv) else ExecuteSqlStatement(fout, "SET TRANSACTION ISOLATION LEVEL " - "REPEATABLE READ"); + "REPEATABLE READ, READ ONLY"); + } + else if (fout->remoteVersion >= 70400) + { + /* note: comma was not accepted in SET TRANSACTION before 8.0 */ + ExecuteSqlStatement(fout, + "SET TRANSACTION ISOLATION LEVEL " + "SERIALIZABLE READ ONLY"); } else ExecuteSqlStatement(fout, |