From eff8a6a0d43169801a30f0f6ddc145f262ab5fca Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 4 May 2008 03:46:08 +0000 Subject: [PATCH] Place statement timeout more appropriately, per gripe from Tom. --- src/bin/pg_dump/pg_backup_archiver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 3c8fe7f178..90f97c44ca 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -219,11 +219,6 @@ 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. */ @@ -2140,6 +2135,9 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls) static void _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 */ ahprintf(AH, "SET client_encoding = '%s';\n", pg_encoding_to_char(AH->public.encoding)); -- 2.39.5