@@ -31,7 +31,7 @@ PostgreSQL documentation
3131 <cmdsynopsis>
3232 <command>pg_ctl</command>
3333 <arg choice="plain"><option>start</option></arg>
34- <arg choice="opt"><option>-w </option></arg>
34+ <arg choice="opt"><option>-W </option></arg>
3535 <arg choice="opt"><option>-t</option> <replaceable>seconds</replaceable></arg>
3636 <arg choice="opt"><option>-s</option></arg>
3737 <arg choice="opt"><option>-D</option> <replaceable>datadir</replaceable></arg>
@@ -60,7 +60,7 @@ PostgreSQL documentation
6060 <cmdsynopsis>
6161 <command>pg_ctl</command>
6262 <arg choice="plain"><option>restart</option></arg>
63- <arg choice="opt"><option>-w </option></arg>
63+ <arg choice="opt"><option>-W </option></arg>
6464 <arg choice="opt"><option>-t</option> <replaceable>seconds</replaceable></arg>
6565 <arg choice="opt"><option>-s</option></arg>
6666 <arg choice="opt"><option>-D</option> <replaceable>datadir</replaceable></arg>
@@ -91,7 +91,7 @@ PostgreSQL documentation
9191 <cmdsynopsis>
9292 <command>pg_ctl</command>
9393 <arg choice="plain"><option>promote</option></arg>
94- <arg choice="opt"><option>-w </option></arg>
94+ <arg choice="opt"><option>-W </option></arg>
9595 <arg choice="opt"><option>-t</option> <replaceable>seconds</replaceable></arg>
9696 <arg choice="opt"><option>-s</option></arg>
9797 <arg choice="opt"><option>-D</option> <replaceable>datadir</replaceable></arg>
@@ -117,7 +117,7 @@ PostgreSQL documentation
117117 <arg choice="plain"><option>d[emand]</option></arg>
118118 </group>
119119 </arg>
120- <arg choice="opt"><option>-w </option></arg>
120+ <arg choice="opt"><option>-W </option></arg>
121121 <arg choice="opt"><option>-t</option> <replaceable>seconds</replaceable></arg>
122122 <arg choice="opt"><option>-s</option></arg>
123123 <arg choice="opt"><option>-o</option> <replaceable>options</replaceable></arg>
@@ -391,17 +391,7 @@ PostgreSQL documentation
391391 Wait for an operation to complete. This is supported for the
392392 modes <literal>start</literal>, <literal>stop</literal>,
393393 <literal>restart</literal>, <literal>promote</literal>,
394- and <literal>register</literal>.
395- </para>
396-
397- <para>
398- Waiting is the default option for shutdowns, but not startups,
399- restarts, or promotions. This is mainly for historical reasons; the
400- waiting option is almost always preferable. If waiting is not
401- selected, the requested action is triggered, but there is no feedback
402- about its success. In that case, the server log file or an external
403- monitoring system would have to be used to check the progress and
404- success of the operation.
394+ and <literal>register</literal>, and is the default for those modes.
405395 </para>
406396
407397 <para>
@@ -424,6 +414,18 @@ PostgreSQL documentation
424414 Do not wait for an operation to complete. This is the opposite of the
425415 option <option>-w</option>.
426416 </para>
417+
418+ <para>
419+ If waiting is disabled, the requested action is triggered, but there
420+ is no feedback about its success. In that case, the server log file
421+ or an external monitoring system would have to be used to check the
422+ progress and success of the operation.
423+ </para>
424+
425+ <para>
426+ In prior releases of PostgreSQL, this was the default except for
427+ the <literal>stop</literal> mode.
428+ </para>
427429 </listitem>
428430 </varlistentry>
429431
@@ -593,7 +595,7 @@ PostgreSQL documentation
593595 To start the server, waiting until the server is
594596 accepting connections:
595597<screen>
596- <prompt>$</prompt> <userinput>pg_ctl -w start</userinput>
598+ <prompt>$</prompt> <userinput>pg_ctl start</userinput>
597599</screen>
598600 </para>
599601
@@ -637,7 +639,7 @@ PostgreSQL documentation
637639 To restart the server,
638640 waiting for it to shut down and restart:
639641<screen>
640- <prompt>$</prompt> <userinput>pg_ctl -w restart</userinput>
642+ <prompt>$</prompt> <userinput>pg_ctl restart</userinput>
641643</screen>
642644 </para>
643645
0 commit comments