Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0be2245

Browse files
committed
pg_ctl: Add long options for -w and -W
From: Vik Fearing <vik@2ndquadrant.fr>
1 parent 917dc7d commit 0be2245

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/src/sgml/ref/pg_ctl-ref.sgml

+2
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ PostgreSQL documentation
383383

384384
<varlistentry>
385385
<term><option>-w</option></term>
386+
<term><option>--wait</option></term>
386387
<listitem>
387388
<para>
388389
Wait for an operation to complete. This is supported for the
@@ -415,6 +416,7 @@ PostgreSQL documentation
415416

416417
<varlistentry>
417418
<term><option>-W</option></term>
419+
<term><option>--no-wait</option></term>
418420
<listitem>
419421
<para>
420422
Do not wait for an operation to complete. This is the opposite of the

src/bin/pg_ctl/pg_ctl.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1959,8 +1959,8 @@ do_help(void)
19591959
printf(_(" -s, --silent only print errors, no informational messages\n"));
19601960
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
19611961
printf(_(" -V, --version output version information, then exit\n"));
1962-
printf(_(" -w wait until operation completes\n"));
1963-
printf(_(" -W do not wait until operation completes\n"));
1962+
printf(_(" -w, --wait wait until operation completes\n"));
1963+
printf(_(" -W, --no-wait do not wait until operation completes\n"));
19641964
printf(_(" -?, --help show this help, then exit\n"));
19651965
printf(_("(The default is to wait for shutdown, but not for start or restart.)\n\n"));
19661966
printf(_("If the -D option is omitted, the environment variable PGDATA is used.\n"));
@@ -2174,6 +2174,8 @@ main(int argc, char **argv)
21742174
{"silent", no_argument, NULL, 's'},
21752175
{"timeout", required_argument, NULL, 't'},
21762176
{"core-files", no_argument, NULL, 'c'},
2177+
{"wait", no_argument, NULL, 'w'},
2178+
{"no-wait", no_argument, NULL, 'W'},
21772179
{NULL, 0, NULL, 0}
21782180
};
21792181

0 commit comments

Comments
 (0)