mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
node status: clarify "archive_mode" message on standbys
"archive_mode = 'always'" available from PostgreSQL 9.5.
This commit is contained in:
@@ -204,7 +204,16 @@ do_node_status(void)
|
|||||||
|
|
||||||
if (enabled == false && recovery_type == RECTYPE_STANDBY)
|
if (enabled == false && recovery_type == RECTYPE_STANDBY)
|
||||||
{
|
{
|
||||||
appendPQExpBufferStr(&archiving_status, " (on standbys \"archive_mode\" must be set to \"always\" to be effective)");
|
if (PQserverVersion(conn) >= 90500)
|
||||||
|
{
|
||||||
|
appendPQExpBufferStr(&archiving_status,
|
||||||
|
" (on standbys \"archive_mode\" must be set to \"always\" to be effective)");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
appendPQExpBufferStr(&archiving_status,
|
||||||
|
" (\"archive_mode\" has no effect on standbys)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
key_value_list_set(&node_status,
|
key_value_list_set(&node_status,
|
||||||
|
|||||||
Reference in New Issue
Block a user