mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -360,7 +360,9 @@ PostgreSQL documentation
|
||||
<listitem>
|
||||
<para>
|
||||
The maximum number of seconds to wait when waiting for startup or
|
||||
shutdown to complete. The default is 60 seconds.
|
||||
shutdown to complete. Defaults to the value of the
|
||||
<envar>PGCTLTIMEOUT</> environment variable or, if not set, to 60
|
||||
seconds.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -468,6 +470,17 @@ PostgreSQL documentation
|
||||
<title>Environment</title>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><envar>PGCTLTIMEOUT</envar></term>
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
Default limit on the number of seconds to wait when waiting for startup
|
||||
or shutdown to complete. If not set, the default is 60 seconds.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><envar>PGDATA</envar></term>
|
||||
|
||||
|
Reference in New Issue
Block a user