pg_ctl: change default shutdown mode from 'smart' to 'fast'
Retain the order of the options in the documentation.
This commit is contained in:
parent
9d9991c84e
commit
0badb069bc
@ -173,11 +173,11 @@ PostgreSQL documentation
|
|||||||
In <option>stop</option> mode, the server that is running in
|
In <option>stop</option> mode, the server that is running in
|
||||||
the specified data directory is shut down. Three different
|
the specified data directory is shut down. Three different
|
||||||
shutdown methods can be selected with the <option>-m</option>
|
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.
|
clients to disconnect and any online backup to finish.
|
||||||
If the server is in hot standby, recovery and streaming replication
|
If the server is in hot standby, recovery and streaming replication
|
||||||
will be terminated once all clients have disconnected.
|
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
|
will terminate an online backup in progress. All active transactions are
|
||||||
rolled back and clients are forcibly disconnected, then the
|
rolled back and clients are forcibly disconnected, then the
|
||||||
server is shut down. <quote>Immediate</quote> mode will abort
|
server is shut down. <quote>Immediate</quote> mode will abort
|
||||||
@ -292,7 +292,7 @@ PostgreSQL documentation
|
|||||||
Specifies the shutdown mode. <replaceable>mode</replaceable>
|
Specifies the shutdown mode. <replaceable>mode</replaceable>
|
||||||
can be <literal>smart</literal>, <literal>fast</literal>, or
|
can be <literal>smart</literal>, <literal>fast</literal>, or
|
||||||
<literal>immediate</literal>, or the first letter of one of
|
<literal>immediate</literal>, or the first letter of one of
|
||||||
these three. If this is omitted, <literal>smart</literal> is used.
|
these three. If this is omitted, <literal>fast</literal> is used.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -79,7 +79,7 @@ static bool do_wait = false;
|
|||||||
static bool wait_set = false;
|
static bool wait_set = false;
|
||||||
static int wait_seconds = DEFAULT_WAIT;
|
static int wait_seconds = DEFAULT_WAIT;
|
||||||
static bool silent_mode = false;
|
static bool silent_mode = false;
|
||||||
static ShutdownMode shutdown_mode = SMART_MODE;
|
static ShutdownMode shutdown_mode = FAST_MODE;
|
||||||
static int sig = SIGTERM; /* default */
|
static int sig = SIGTERM; /* default */
|
||||||
static CtlCommand ctl_command = NO_COMMAND;
|
static CtlCommand ctl_command = NO_COMMAND;
|
||||||
static char *pg_data = NULL;
|
static char *pg_data = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user