mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
Add note about why 'hot_standby=on' is currently required
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -3690,7 +3690,6 @@ check_upstream_config(PGconn *conn, int server_version_num, bool exit_on_error)
|
||||
* of what's in 'archive_command', so until 'archive_mode' is on we can't
|
||||
* properly check it.
|
||||
*/
|
||||
|
||||
if (guc_set(conn, "archive_mode", "=", "on"))
|
||||
{
|
||||
i = guc_set(conn, "archive_command", "!=", "");
|
||||
@@ -3711,6 +3710,11 @@ check_upstream_config(PGconn *conn, int server_version_num, bool exit_on_error)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Check that 'hot_standby' is on. This isn't strictly necessary
|
||||
* for the primary server, however the assumption is that configuration
|
||||
* should be consistent for all servers in a cluster.
|
||||
*/
|
||||
i = guc_set(conn, "hot_standby", "=", "on");
|
||||
if (i == 0 || i == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user