Hot Standby Lag Calculation - Mailing list pgsql-general

From Sam Nelson
Subject Hot Standby Lag Calculation
Date
Msg-id CAD+BJxJdxdnjrArO_r-9cRcNT5c-fHJzEgVhxTBFWW4RZaX-mw@mail.gmail.com
Whole thread Raw
Responses Re: Hot Standby Lag Calculation
List pgsql-general
Hi, List,

We're trying to calculate the amount of time that a Hot Standby slave is lagging behind its master, and our results look wrong (average of 7 seconds, with some over 1 minute), so we were thinking that we're probably calculating it wrong.

We're currently just using the timestamps from ls (mtimes, I believe?) against the files in the pg_xlog directory and comparing the timestamp of the files on the master to the same files on the slave.  Is this incorrect?  If so, what's the standard way of calculating the lag of a hot standby?
--- 
===========================
Samuel Nelson
Consistent State
www.consistentstate.com
303-955-0509
===========================

pgsql-general by date:

Previous
From: Eduardo Morras
Date:
Subject: Re: Vacuum as "easily obtained" locks
Next
From: Geoffrey Myers
Date:
Subject: running out of oids