Re: How to know if a database has changed

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: How to know if a database has changed
Дата
Msg-id 614bd145-899a-8dc9-154e-a42ad17c2685@a-kretschmer.de
обсуждение исходный текст
Ответ на How to know if a database has changed  (marcelo <marcelo.nicolet@gmail.com>)
Ответы Re: How to know if a database has changed  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Список pgsql-general

Am 11.12.2017 um 17:48 schrieb marcelo:
> The installation I'm planning will manage several databases, but not 
> all of them will change every day.
> In order to planning/scripting the pg_dump usage, I would need to know 
> which databases had some change activity at the end of some day.
> How can it be done?
> TIA
>

I think you can use logical replication. Take a view at 
https://github.com/eulerto/wal2json (for instance, there are other 
solutions available), just capture the wal and check for changes for 
every database.

it's just a rough idea...



Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com



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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: How to know if a database has changed
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: How to know if a database has changed