aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-06-19 14:01:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-06-19 14:01:17 -0400
commit354b3a3ac814076dbe8b51bf94b203abbcb5b32f (patch)
tree01f9f4a713cc69e26946e6fdd83b28cb9980b7ed /src
parentd56c02f1ac9247295ec1e5143361020a91f708c8 (diff)
downloadpostgresql-354b3a3ac814076dbe8b51bf94b203abbcb5b32f.tar.gz
postgresql-354b3a3ac814076dbe8b51bf94b203abbcb5b32f.zip
Increase fixed waits in "pg_ctl start -w" from 5 seconds to 10.
In the 9.1 branch only, modify test_postmaster_connection() so that it will wait up to 10 seconds, not 5, for the postmaster pid file to appear. This is a much simpler and safer, if less complete, way of addressing the buildfarm instability issues we hoped to solve with c869a7d5b. Discussion: <20160618042812.5798.85609@wrigleys.postgresql.org>
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_ctl/pg_ctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 817c37dc643..45db82a8aff 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -607,7 +607,7 @@ test_postmaster_connection(bool do_checkpoint)
* timeout first.
*/
snprintf(connstr, sizeof(connstr),
- "dbname=postgres port=%d host='%s' connect_timeout=5",
+ "dbname=postgres port=%d host='%s' connect_timeout=10",
portnum, host_str);
}
}
@@ -624,14 +624,14 @@ test_postmaster_connection(bool do_checkpoint)
/*
* The postmaster should create postmaster.pid very soon after being
- * started. If it's not there after we've waited 5 or more seconds,
+ * started. If it's not there after we've waited 10 or more seconds,
* assume startup failed and give up waiting. (Note this covers both
* cases where the pidfile was never created, and where it was created
* and then removed during postmaster exit.) Also, if there *is* a
* file there but it appears stale, issue a suitable warning and give
* up waiting.
*/
- if (i >= 5)
+ if (i >= 10)
{
struct stat statbuf;