pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Walter Nordmann <wnordmann@gmx.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to know if a database has changed
Date: Mon, 11 Dec 2017 18:00:18 +0100
Message-ID: <0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de> (raw)
In-Reply-To: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com>
References: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com>

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
>





view thread (12+ messages)  latest in thread

Message-ID: <0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de>
Permalink:  ../0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de/
Also on:    postgresql.org/message-id/0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de

 · 

reply

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: wnordmann@gmx.de
  Subject: Re: How to know if a database has changed
  In-Reply-To: <0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de>
  References: <f6d7853e-7906-bdf2-787e-95208bcdbe67@gmail.com> <0bd24d60-c56b-a0b0-0639-bb30882d46c1@gmx.de>

* 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