1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Disable statement timeouts while making or restoring dumps.

Joshua Drake.
This commit is contained in:
Andrew Dunstan
2008-05-03 23:32:32 +00:00
parent c88850f4a0
commit 17a56c0b55
2 changed files with 13 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.488 2008/04/14 17:05:33 tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.489 2008/05/03 23:32:32 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -570,6 +570,12 @@ main(int argc, char **argv)
if (g_fout->remoteVersion >= 80300)
do_sql_command(g_conn, "SET synchronize_seqscans TO off");
/*
* Disable timeouts if supported.
*/
if (g_fout->remoteVersion >= 70300)
do_sql_command(g_conn, "SET statement_timeout = 0");
/*
* Start serializable transaction to dump consistent data.
*/