"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

@@ -347,9 +347,11 @@ typedef struct RepmgrdInfo {
char pid_file[MAXLEN];
bool pg_running;
char pg_running_text[MAXLEN];
RecoveryType recovery_type;
bool running;
char repmgrd_running[MAXLEN];
bool paused;
bool wal_paused_pending_wal;
} RepmgrdInfo;