From 5f9573612b70fe2d036f0e8f9c384b2b01ff4b6c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 3 Jun 2024 15:43:17 +0200 Subject: [PATCH] Add details in script output in recovery mode --- check_pg_streaming_replication | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_pg_streaming_replication b/check_pg_streaming_replication index 807fe0d..0b29aa5 100755 --- a/check_pg_streaming_replication +++ b/check_pg_streaming_replication @@ -424,6 +424,9 @@ then fi echo "OK: Hot-standby server is uptodate" + echo "Replication state: $M_CUR_SYNC_STATE" + echo "Last sent/writed LSN: '$M_CUR_SENT_LSN' / '$M_CUR_WRITED_LSN'" + [ "$LAST_RECEIVED_LSN" != "$LAST_REPLAYED_LSN" ] && echo "Replay delay: ${REPLAY_DELAY}s" exit 0 else debug "File recovery.conf not found. Master mode."