Re: How to know if a database has changed

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How to know if a database has changed
Date: 2017-12-11 17:26:15
Message-ID: 614bd145-899a-8dc9-154e-a42ad17c2685@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2017-12-11 18:49:08 Re: How to know if a database has changed
Previous Message Jaime Casanova 2017-12-11 17:13:07 Re: How to know if a database has changed