From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: How to restore database to previous state
Date: Mon, 11 May 2020 00:43:05 +0300
Message-ID: <79BA655C25F1470CAABE070E5F412813@dell2> (raw)
Hi!
Postgres 12 database is runing on Debian
max_wal_size = 5GB
is specified in postgres.conf file
How to restore database to some previous state, e.q. before important data was accidently deleted.
Binary asynchrunous replication with slot is also used.
I looks like it is possible to create standby server which replicates changes using 24 hour delay and data directory backups in
every night.
However this requires separate delayed standby server .
Is there simpler solution, e.q reverse playback of wal segments starting from current data directory contents.
Andrus.
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: kobruleht2@hot.ee
Subject: Re: How to restore database to previous state
In-Reply-To: <79BA655C25F1470CAABE070E5F412813@dell2>
References: <79BA655C25F1470CAABE070E5F412813@dell2>
* 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