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
0badb069
Commit
0badb069
authored
Mar 31, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_ctl: change default shutdown mode from 'smart' to 'fast'
Retain the order of the options in the documentation.
parent
9d9991c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
doc/src/sgml/ref/pg_ctl-ref.sgml
doc/src/sgml/ref/pg_ctl-ref.sgml
+3
-3
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+1
-1
No files found.
doc/src/sgml/ref/pg_ctl-ref.sgml
View file @
0badb069
...
...
@@ -173,11 +173,11 @@ PostgreSQL documentation
In <option>stop</option> mode, the server that is running in
the specified data directory is shut down. Three different
shutdown methods can be selected with the <option>-m</option>
option. <quote>Smart</quote> mode
(the default)
waits for all active
option. <quote>Smart</quote> mode waits for all active
clients to disconnect and any online backup to finish.
If the server is in hot standby, recovery and streaming replication
will be terminated once all clients have disconnected.
<quote>Fast</quote> mode does not wait for clients to disconnect and
<quote>Fast</quote> mode
(the default)
does not wait for clients to disconnect and
will terminate an online backup in progress. All active transactions are
rolled back and clients are forcibly disconnected, then the
server is shut down. <quote>Immediate</quote> mode will abort
...
...
@@ -292,7 +292,7 @@ PostgreSQL documentation
Specifies the shutdown mode. <replaceable>mode</replaceable>
can be <literal>smart</literal>, <literal>fast</literal>, or
<literal>immediate</literal>, or the first letter of one of
these three. If this is omitted, <literal>
smar
t</literal> is used.
these three. If this is omitted, <literal>
fas
t</literal> is used.
</para>
</listitem>
</varlistentry>
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
0badb069
...
...
@@ -79,7 +79,7 @@ static bool do_wait = false;
static
bool
wait_set
=
false
;
static
int
wait_seconds
=
DEFAULT_WAIT
;
static
bool
silent_mode
=
false
;
static
ShutdownMode
shutdown_mode
=
SMAR
T_MODE
;
static
ShutdownMode
shutdown_mode
=
FAS
T_MODE
;
static
int
sig
=
SIGTERM
;
/* default */
static
CtlCommand
ctl_command
=
NO_COMMAND
;
static
char
*
pg_data
=
NULL
;
...
...
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