Re: How to know if a database has changed - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: How to know if a database has changed
Date
Msg-id 20171211165824.GA31480@hermes.hilbert.loc
Whole thread Raw
In response to How to know if a database has changed  (marcelo <marcelo.nicolet@gmail.com>)
List pgsql-general
On Mon, Dec 11, 2017 at 01:48:44PM -0300, marcelo wrote:

> 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?

Implement INSERT/UPDATE/DELETE/TRUNCATE triggers on all
tables and DDL triggers on CREATE, ALTER, DROP, SECURITY
LABEL, COMMENT, GRANT or REVOKE.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


pgsql-general by date:

Previous
From: marcelo
Date:
Subject: pg_dump and logging
Next
From: Walter Nordmann
Date:
Subject: Re: How to know if a database has changed