Stuart Bishop shaped the aether to ask:
> Hi.
>
> I need to measure how far in the past a hot standby is, async
> streaming replication.
>
Not sure if this will help, but we are using repmgr <https://github.com/greg2ndQuadrant/repmgr>; it sets up a
monitoringschema which we poll )see the "Monitoring and Testing" section ... study their source code some and see how
theycome up with lag times.
HTH,
Greg WiIliamson
DBA
Powerreviews dot com