Measurin the lag between a master and a replica

Поиск
Список
Период
Сортировка
От Ali Pouya
Тема Measurin the lag between a master and a replica
Дата
Msg-id CAEEEPmxh3TPO6HKxUir1=LhyRh4VGSPSX2UNsv-B9QVB-reaHQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Measurin the lag between a master and a replica  (Sergey Konoplev <sergey.konoplev@postgresql-consulting.com>)
Re: Measurin the lag between a master and a replica  (David Kerr <dmk@mr-paradox.net>)
Список pgsql-admin
Hi,
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 units).

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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SSL SYSCALL error: EOF detected
Следующее
От: "francescoboccacci@libero.it"
Дата:
Сообщение: autovacuum: found orphan temp