@ -91,6 +91,8 @@ PostgreSQL documentation
<cmdsynopsis>
<cmdsynopsis>
<command>pg_ctl</command>
<command>pg_ctl</command>
<arg choice="plain"><option>promote</option></arg>
<arg choice="plain"><option>promote</option></arg>
<arg choice="opt"><option>-w</option></arg>
<arg choice="opt"><option>-t</option> <replaceable>seconds</replaceable></arg>
<arg choice="opt"><option>-s</option></arg>
<arg choice="opt"><option>-s</option></arg>
<arg choice="opt"><option>-D</option> <replaceable>datadir</replaceable></arg>
<arg choice="opt"><option>-D</option> <replaceable>datadir</replaceable></arg>
</cmdsynopsis>
</cmdsynopsis>
@ -361,8 +363,8 @@ PostgreSQL documentation
<term><option>--timeout</option></term>
<term><option>--timeout</option></term>
<listitem>
<listitem>
<para>
<para>
The maximum number of seconds to wait when waiting for startup or
The maximum number of seconds to wait when waiting for an operation
shutdown to complete. Defaults to the value of the
to complete (see option <option>-w</option>) . Defaults to the value of the
<envar>PGCTLTIMEOUT</> environment variable or, if not set, to 60
<envar>PGCTLTIMEOUT</> environment variable or, if not set, to 60
seconds.
seconds.
</para>
</para>
@ -383,8 +385,23 @@ PostgreSQL documentation
<term><option>-w</option></term>
<term><option>-w</option></term>
<listitem>
<listitem>
<para>
<para>
Wait for the startup or shutdown to complete.
Wait for an operation to complete. This is supported for the
Waiting is the default option for shutdowns, but not startups.
modes <literal>start</literal>, <literal>stop</literal>,
<literal>restart</literal>, <literal>promote</literal>,
and <literal>register</literal>.
</para>
<para>
Waiting is the default option for shutdowns, but not startups,
restarts, or promotions. This is mainly for historical reasons; the
waiting option is almost always preferable. If waiting is not
selected, the requested action is triggered, but there is no feedback
about its success. In that case, the server log file or an external
monitoring system would have to be used to check the progress and
success of the operation.
</para>
<para>
When waiting for startup, <command>pg_ctl</command> repeatedly
When waiting for startup, <command>pg_ctl</command> repeatedly
attempts to connect to the server.
attempts to connect to the server.
When waiting for shutdown, <command>pg_ctl</command> waits for
When waiting for shutdown, <command>pg_ctl</command> waits for
@ -400,8 +417,8 @@ PostgreSQL documentation
<term><option>-W</option></term>
<term><option>-W</option></term>
<listitem>
<listitem>
<para>
<para>
Do not wait for startup or shutdown to complete. This is the
Do not wait for an operation to complete. This is the opposite of the
default for start and restart modes .
option <option>-w</option> .
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>