diff --git a/doc/appendix-release-notes.sgml b/doc/appendix-release-notes.sgml
index 71af8999..1e39eced 100644
--- a/doc/appendix-release-notes.sgml
+++ b/doc/appendix-release-notes.sgml
@@ -81,9 +81,17 @@
+
+
+ &repmgr;: when executing repmgr standby switchover, don't abort if one or more nodes are not reachable and
+ they are marked as inactive.
+
+
+
-
+
+
diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c
index 9dbc3c72..b8fffa00 100644
--- a/repmgr-action-standby.c
+++ b/repmgr-action-standby.c
@@ -4086,16 +4086,24 @@ do_standby_switchover(void)
repmgrd_info[i]->pg_running = false;
- item_list_append_format(&repmgrd_connection_errors,
- _("unable to connect to node \"%s\" (ID %i):\n%s"),
- cell->node_info->node_name,
- cell->node_info->node_id,
- PQerrorMessage(cell->node_info->conn));
+ /*
+ * Only worry about unreachable nodes if they're marked as active
+ * in the repmgr metadata.
+ */
+ if (cell->node_info->active == true)
+ {
+ unreachable_node_count++;
+
+ item_list_append_format(&repmgrd_connection_errors,
+ _("unable to connect to node \"%s\" (ID %i):\n%s"),
+ cell->node_info->node_name,
+ cell->node_info->node_id,
+ PQerrorMessage(cell->node_info->conn));
+ }
PQfinish(cell->node_info->conn);
cell->node_info->conn = NULL;
- unreachable_node_count++;
i++;
continue;
}