From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to know if a database has changed
Date: Mon, 11 Dec 2017 17:58:24 +0100
Message-ID: <20171211165824.GA31480@hermes.hilbert.loc> (raw)
In-Reply-To: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com>
References: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Karsten.Hilbert@gmx.net
Subject: Re: How to know if a database has changed
In-Reply-To: <20171211165824.GA31480@hermes.hilbert.loc>
References: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com> <20171211165824.GA31480@hermes.hilbert.loc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox