8000 pg_ctl: change default shutdown mode from 'smart' to 'fast' · home201448/postgres@0badb06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0badb06

Browse files
committed
pg_ctl: change default shutdown mode from 'smart' to 'fast'
Retain the order of the options in the documentation.
1 parent 9d9991c commit 0badb06

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
static bool wait_set = false;
8080
static int wait_seconds = DEFAULT_WAIT;
8181
static bool silent_mode = false;
82-
static ShutdownMode shutdown_mode = SMART_MODE;
82+
static ShutdownMode shutdown_mode = FAST_MODE;
8383
static int sig = SIGTERM; /* default */
8484
static CtlCommand ctl_command = NO_COMMAND;
8585
static char *pg_data = NULL;

0 commit comments

Comments
 (0)
0