Re: How to check stream replication latest history status

2022-11-14 Thread Kyotaro Horiguchi
At Mon, 14 Nov 2022 00:09:36 +0800, 徐志宇徐 wrote in > If the primary and standby have long replay_lag. I don't want to > standby server promote. > > Is there any view or function which store the latest stream > replication gap(replay_lag) between primary and standby ? > Or it the

How to check stream replication latest history status

2022-11-13 Thread 徐志宇徐
Hi All I set up Postgres 11 stream replication env.Use keepalived to control VIP and a script to check Postgres status. Usually. I could check the stream replication status by this view "pg_stat_replcation" on primary server. Check this view "pg_stat_wal_receiver" on standby