Re: How to know if a database has changed

Поиск
Список
Период
Сортировка
От Walter Nordmann
Тема Re: How to know if a database has changed
Дата
Msg-id 0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de
обсуждение исходный текст
Ответ на How to know if a database has changed  (marcelo <marcelo.nicolet@gmail.com>)
Список pgsql-general
Hi,

a) create triggers on some tables (on update, on delete ...).

let the triggers write some log, check the log or let the triggers 
update one central table adding database, tablenames with "table ... in 
database ... has been updated, modified'

b) enable detailed loggin and check the system log.

c) both ;)

Regards
walter

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
>



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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: How to know if a database has changed
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: pg_dump and logging