mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Disable statement timeouts while making or restoring dumps.
Joshua Drake.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.154 2008/04/13 03:49:21 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.155 2008/05/03 23:32:32 adunstan Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -219,6 +219,11 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
|
||||
ahprintf(AH, "BEGIN;\n\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Disable statement_timeout in archive for pg_restore/psql
|
||||
*/
|
||||
ahprintf(AH, "SET statement_timeout = 0;\n");
|
||||
|
||||
/*
|
||||
* Establish important parameter values right away.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user