Search Postgresql Archives

Re: How to check stream replication latest history status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Mon, 14 Nov 2022 00:09:36 +0800, 徐志宇徐 <xuzhiyuster@xxxxxxxxx> 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 there any workaround to know this stream replication
> gap(replay_lag) infomation ?  Thanks for your help.

replay_lag vanishes when the steram is gone. But commit timestamps
might work for you. You can see when the last replayed transaction on
the standby was commited on the primary.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux