daemon status: add column "upstream last seen"

This displays the interval (in seconds) since the repmgrd instance on
each node last confirmed its upstream node is available.
This commit is contained in:
Ian Barwick
2019-02-23 12:16:34 +09:00
parent 71d151ca87
commit 07097575b1
6 changed files with 91 additions and 31 deletions

View File

@@ -354,6 +354,8 @@ typedef struct RepmgrdInfo {
char repmgrd_running[MAXLEN];
bool paused;
bool wal_paused_pending_wal;
int upstream_last_seen;
char upstream_last_seen_text[MAXLEN];
} RepmgrdInfo;