"daemon status": emit warning if WAL replay is paused

Specifically, if WAL replay is paused *and* WAL is pending replay,
this node cannot be promoted until WAL replay is unpaused. In this
state it is not a suitable promotion candidate in a failover situation.
This commit is contained in:
Ian Barwick
2019-02-06 13:31:02 +09:00
parent 464ec6bec3
commit 984ce7420b
3 changed files with 23 additions and 2 deletions

View File

@@ -5046,7 +5046,7 @@ is_wal_replay_paused(PGconn *conn, bool check_pending_wal)
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
log_db_error(conn, query.data, _("unable to execute \"%s\""), query.data);
log_db_error(conn, query.data, _("unable to execute WAL replay pause query"));
}
else
{