Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0be22457
Commit
0be22457
authored
Oct 19, 2016
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_ctl: Add long options for -w and -W
From: Vik Fearing <vik@2ndquadrant.fr>
parent
917dc7d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
doc/src/sgml/ref/pg_ctl-ref.sgml
doc/src/sgml/ref/pg_ctl-ref.sgml
+2
-0
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+4
-2
No files found.
doc/src/sgml/ref/pg_ctl-ref.sgml
View file @
0be22457
...
...
@@ -383,6 +383,7 @@ PostgreSQL documentation
<varlistentry>
<term><option>-w</option></term>
<term><option>--wait</option></term>
<listitem>
<para>
Wait for an operation to complete. This is supported for the
...
...
@@ -415,6 +416,7 @@ PostgreSQL documentation
<varlistentry>
<term><option>-W</option></term>
<term><option>--no-wait</option></term>
<listitem>
<para>
Do not wait for an operation to complete. This is the opposite of the
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
0be22457
...
...
@@ -1959,8 +1959,8 @@ do_help(void)
printf
(
_
(
" -s, --silent only print errors, no informational messages
\n
"
));
printf
(
_
(
" -t, --timeout=SECS seconds to wait when using -w option
\n
"
));
printf
(
_
(
" -V, --version output version information, then exit
\n
"
));
printf
(
_
(
" -w
wait until operation completes
\n
"
));
printf
(
_
(
" -W
do not wait until operation completes
\n
"
));
printf
(
_
(
" -w
, --wait
wait until operation completes
\n
"
));
printf
(
_
(
" -W
, --no-wait
do not wait until operation completes
\n
"
));
printf
(
_
(
" -?, --help show this help, then exit
\n
"
));
printf
(
_
(
"(The default is to wait for shutdown, but not for start or restart.)
\n\n
"
));
printf
(
_
(
"If the -D option is omitted, the environment variable PGDATA is used.
\n
"
));
...
...
@@ -2174,6 +2174,8 @@ main(int argc, char **argv)
{
"silent"
,
no_argument
,
NULL
,
's'
},
{
"timeout"
,
required_argument
,
NULL
,
't'
},
{
"core-files"
,
no_argument
,
NULL
,
'c'
},
{
"wait"
,
no_argument
,
NULL
,
'w'
},
{
"no-wait"
,
no_argument
,
NULL
,
'W'
},
{
NULL
,
0
,
NULL
,
0
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment