Re: monitoring replicatgion : lag calculation - Mailing list pgsql-admin

From Lonni J Friedman
Subject Re: monitoring replicatgion : lag calculation
Date
Msg-id CAP=oouHA0XJki1_Fw8bLQZu415oKq=Mr6ijQA3R=AJCjZRq04A@mail.gmail.com
Whole thread Raw
In response to monitoring replicatgion : lag calculation  (Ben Ciceron <ben@triggit.com>)
Responses Re: monitoring replicatgion : lag calculation  (Ben Ciceron <ben@triggit.com>)
List pgsql-admin
On Mon, Sep 12, 2011 at 10:04 AM, Ben Ciceron <ben@triggit.com> wrote:
> hello,
>
> question about WAL on pg 9.0 :
>
> the doc at http://www.postgresql.org/docs/9.1/static/warm-standby.html#SYNCHRONOUS-REPLICATION
> (section 25.2.5.2. Monitoring) says:
>
>  You can calculate this lag by comparing the current WAL write
> location on the primary with the last WAL location received by the
> standby.
>
> but the WAL values i get are not 177/13C4E158 , 177/13C52BC0 so how to
> calculate the lag ? should i apply a basic hex conversion first ?

Pretty much.  See:
http://archives.postgresql.org/pgsql-hackers/2010-11/msg00252.php

pgsql-admin by date:

Previous
From: Ben Ciceron
Date:
Subject: monitoring replicatgion : lag calculation
Next
From: Ben Ciceron
Date:
Subject: Re: monitoring replicatgion : lag calculation