Skip to content

Commit c2c9fbe

Browse files
committed
Place statement timeout more appropriately, per gripe from Tom.
1 parent 17a56c0 commit c2c9fbe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.155 2008/05/03 23:32:32 adunstan Exp $
18+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.156 2008/05/04 03:46:08 adunstan Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -219,11 +219,6 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
219219
ahprintf(AH, "BEGIN;\n\n");
220220
}
221221

222-
/*
223-
* Disable statement_timeout in archive for pg_restore/psql
224-
*/
225-
ahprintf(AH, "SET statement_timeout = 0;\n");
226-
227222
/*
228223
* Establish important parameter values right away.
229224
*/
@@ -2140,6 +2135,9 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls)
21402135
static void
21412136
_doSetFixedOutputState(ArchiveHandle *AH)
21422137
{
2138+
/* Disable statement_timeout in archive for pg_restore/psql */
2139+
ahprintf(AH, "SET statement_timeout = 0;\n")
2140+
21432141
/* Select the correct character set encoding */
21442142
ahprintf(AH, "SET client_encoding = '%s';\n",
21452143
pg_encoding_to_char(AH->public.encoding));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy