Accept pg_ctl timeout from the PGCTLTIMEOUT environment variable.

Noah Misch <noah@leadboat.com>

Commit: f97664cf54a2e1bf7d727b1c86b1d9b41e1eaba6
Author: Noah Misch <noah@leadboat.com>
Date: 2016-02-11T01:34:48Z
Releases: 9.1.21
Accept pg_ctl timeout from the PGCTLTIMEOUT environment variable.

Many automated test suites call pg_ctl.  Buildfarm members axolotl,
hornet, mandrill, shearwater, sungazer and tern have failed when server
shutdown took longer than the pg_ctl default 60s timeout.  This addition
permits slow hosts to easily raise the timeout without us editing a
--timeout argument into every test suite pg_ctl call.  Back-patch to 9.1
(all supported versions) for the sake of automated testing.

Reviewed by Tom Lane.

Files

PathChange+/−
doc/src/sgml/ref/pg_ctl-ref.sgml modified +14 −1
src/bin/pg_ctl/pg_ctl.c modified +9 −1