Skip site navigation (1) Skip section navigation (2)

Measurin the lag between a master and a replica

From: Ali Pouya <alipouya2(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Measurin the lag between a master and a replica
Date: 2012-07-19 15:17:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I am using a master and a replica with PostgreSQL 9.1.3.
I would like to measure the replication lag between my servers (in time

On the replica I can use the function pg_last_xact_replay_timestamp().
But on the master I only can use pg_current_xlog_location() which does not
return a timestamp. I do not know any function returning the timestamp.

Is there any way to get the timestamp relative to the result of
pg_current_xlog_location() ?

Thanks for your help
Best regards
Ali Pouya


pgsql-admin by date

Next:From: francescoboccacci@libero.itDate: 2012-07-19 15:38:50
Subject: autovacuum: found orphan temp
Previous:From: Tom LaneDate: 2012-07-19 15:01:23
Subject: Re: SSL SYSCALL error: EOF detected

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group