Commit c2c9fbef authored by Andrew Dunstan's avatar Andrew Dunstan

Place statement timeout more appropriately, per gripe from Tom.

parent 17a56c0b
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.155 2008/05/03 23:32:32 adunstan Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.156 2008/05/04 03:46:08 adunstan Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -219,11 +219,6 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt) ...@@ -219,11 +219,6 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
ahprintf(AH, "BEGIN;\n\n"); 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. * Establish important parameter values right away.
*/ */
...@@ -2140,6 +2135,9 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls) ...@@ -2140,6 +2135,9 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls)
static void static void
_doSetFixedOutputState(ArchiveHandle *AH) _doSetFixedOutputState(ArchiveHandle *AH)
{ {
/* Disable statement_timeout in archive for pg_restore/psql */
ahprintf(AH, "SET statement_timeout = 0;\n")
/* Select the correct character set encoding */ /* Select the correct character set encoding */
ahprintf(AH, "SET client_encoding = '%s';\n", ahprintf(AH, "SET client_encoding = '%s';\n",
pg_encoding_to_char(AH->public.encoding)); pg_encoding_to_char(AH->public.encoding));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment