Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0badb06

Browse files
committed
pg_ctl: change default shutdown mode from 'smart' to 'fast'
Retain the order of the options in the documentation.
1 parent9d9991c commit0badb06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ PostgreSQL documentation
173173
In <option>stop</option> mode, the server that is running in
174174
the specified data directory is shut down. Three different
175175
shutdown methods can be selected with the <option>-m</option>
176-
option. <quote>Smart</quote> mode(the default)waits for all active
176+
option. <quote>Smart</quote> mode waits for all active
177177
clients to disconnect and any online backup to finish.
178178
If the server is in hot standby, recovery and streaming replication
179179
will be terminated once all clients have disconnected.
180-
<quote>Fast</quote> mode does not wait for clients to disconnect and
180+
<quote>Fast</quote> mode(the default)does not wait for clients to disconnect and
181181
will terminate an online backup in progress. All active transactions are
182182
rolled back and clients are forcibly disconnected, then the
183183
server is shut down. <quote>Immediate</quote> mode will abort
@@ -292,7 +292,7 @@ PostgreSQL documentation
292292
Specifies the shutdown mode. <replaceable>mode</replaceable>
293293
can be <literal>smart</literal>, <literal>fast</literal>, or
294294
<literal>immediate</literal>, or the first letter of one of
295-
these three. If this is omitted, <literal>smart</literal> is used.
295+
these three. If this is omitted, <literal>fast</literal> is used.
296296
</para>
297297
</listitem>
298298
</varlistentry>

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static bool do_wait = false;
7979
staticboolwait_set= false;
8080
staticintwait_seconds=DEFAULT_WAIT;
8181
staticboolsilent_mode= false;
82-
staticShutdownModeshutdown_mode=SMART_MODE;
82+
staticShutdownModeshutdown_mode=FAST_MODE;
8383
staticintsig=SIGTERM;/* default */
8484
staticCtlCommandctl_command=NO_COMMAND;
8585
staticchar*pg_data=NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp