Change hot_standby default value to 'on'
This goes together with the changes made to enable replication on the sending side by default (wal_level, max_wal_senders etc) by making the receiving stadby node also enable it by default. Huong Dangminh
This commit is contained in:
parent
a99448ab45
commit
34fc616738
|
@ -3227,7 +3227,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
|
||||||
<para>
|
<para>
|
||||||
Specifies whether or not you can connect and run queries during
|
Specifies whether or not you can connect and run queries during
|
||||||
recovery, as described in <xref linkend="hot-standby">.
|
recovery, as described in <xref linkend="hot-standby">.
|
||||||
The default value is <literal>off</literal>.
|
The default value is <literal>on</literal>.
|
||||||
This parameter can only be set at server start. It only has effect
|
This parameter can only be set at server start. It only has effect
|
||||||
during archive recovery or in standby mode.
|
during archive recovery or in standby mode.
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -2057,8 +2057,8 @@ if (!triggered)
|
||||||
<title>Administrator's Overview</title>
|
<title>Administrator's Overview</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If <varname>hot_standby</> is turned <literal>on</> in
|
If <varname>hot_standby</> is <literal>on</> in <filename>postgresql.conf</>
|
||||||
<filename>postgresql.conf</> and there is a <filename>recovery.conf</>
|
(the default value) and there is a <filename>recovery.conf</>
|
||||||
file present, the server will run in Hot Standby mode.
|
file present, the server will run in Hot Standby mode.
|
||||||
However, it may take some time for Hot Standby connections to be allowed,
|
However, it may take some time for Hot Standby connections to be allowed,
|
||||||
because the server will not accept connections until it has completed
|
because the server will not accept connections until it has completed
|
||||||
|
|
|
@ -1571,7 +1571,7 @@ static struct config_bool ConfigureNamesBool[] =
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
&EnableHotStandby,
|
&EnableHotStandby,
|
||||||
false,
|
true,
|
||||||
NULL, NULL, NULL
|
NULL, NULL, NULL
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@
|
||||||
|
|
||||||
# These settings are ignored on a master server.
|
# These settings are ignored on a master server.
|
||||||
|
|
||||||
#hot_standby = off # "on" allows queries during recovery
|
#hot_standby = on # "off" disallows queries during recovery
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
#max_standby_archive_delay = 30s # max delay before canceling queries
|
#max_standby_archive_delay = 30s # max delay before canceling queries
|
||||||
# when reading WAL from archive;
|
# when reading WAL from archive;
|
||||||
|
|
Loading…
Reference in New Issue