Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2c9fbe

Browse files
committed
Place statement timeout more appropriately, per gripe from Tom.
1 parent17a56c0 commitc2c9fbe

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
staticvoid
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)

[8]ページ先頭

©2009-2025 Movatter.jp