Re: Monitoring Replication - Postgres 9.2

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Monitoring Replication - Postgres 9.2
Дата
Msg-id 1e475468-f2bc-62c8-e9b4-ba68523dece0@hogranch.com
обсуждение исходный текст
Ответ на Re: Monitoring Replication - Postgres 9.2  (Patrick B <patrickbakerbr@gmail.com>)
Ответы Re: Monitoring Replication - Postgres 9.2
Список pgsql-general
On 11/29/2016 5:10 PM, Patrick B wrote:

Yep.. once a minute or so. And yes, I need to store a history with timestamp.

Any idea? :)

so create a table with a timestamptz, plus all the fields you want, have a script (perl?  python?  whatever your favorite poison is with database access) that once a minute executes those two queries (you'll need two database connections since only the slave knows how far behind it is), and inserts the data into your table.


-- 
john r pierce, recycling bits in santa cruz

В списке pgsql-general по дате отправления:

Предыдущее
От: Patrick B
Дата:
Сообщение: Re: Monitoring Replication - Postgres 9.2
Следующее
От: Patrick B
Дата:
Сообщение: Re: Monitoring Replication - Postgres 9.2