Monitoring Replication - Postgres 9.2 - Mailing list pgsql-general

From Patrick B
Subject Monitoring Replication - Postgres 9.2
Date
Msg-id CAJNY3isBMpVqN7J_sDeU0FzV2rME-w7nLA83=NY-29gbbbu_1Q@mail.gmail.com
Whole thread Raw
Responses Re: Monitoring Replication - Postgres 9.2  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Hi guys,

I use these queries to monitor the streaming replication:

on master:
select client_addr, state, sent_location, write_location, flush_location, replay_location, sync_priority from pg_stat_replication;

On slave:
select now() - pg_last_xact_replay_timestamp() AS replication_delay;

Can I create a table to store that data?
I also need the data is constantly put into this table. How would be the best way to do it?

Cheers
Patrick

pgsql-general by date:

Previous
From: Samuel Williams
Date:
Subject: Index size
Next
From: Adrian Klaver
Date:
Subject: Re: Index size