From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Johnathan Tiamoh <johnathantiamoh@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: what do you do after pg_walreset ?
Date: Fri, 22 Dec 2023 13:10:20 +0100
Message-ID: <dad7f74266b2b964c7d587b5ff5859929a46e447.camel@cybertec.at> (raw)
In-Reply-To: <CACoPQdYKGdAbyC9qdXv4tK5+4CAUbXmSqBnRuZnmO8wP=x_RFg@mail.gmail.com>
References: <CACoPQdYKGdAbyC9qdXv4tK5+4CAUbXmSqBnRuZnmO8wP=x_RFg@mail.gmail.com>
On Thu, 2023-12-21 at 18:53 -0500, Johnathan Tiamoh wrote:
> Please I wish to find out what you do after running pg_walreset.
You mean pg_resetwal.
> I made a mistake and deleted my data directory with all its content.
> I then restore with 1 day old backups, after that i could start
> unless i did pg_walreset.
Which means that the backup was broken.
> 1, I wish to find out what to do after i have started postgresql ?
pg_dumpall the cluster and restore the result to a new cluster
to get rod of the data corruption introduced by pg_resetwal.
> 2, How do I apply the wall files after the reset ?
You cannot do that.
> 3, How can I determine the amount of data lost ?
Well, everything from after the "backup".
Yours,
Laurenz Albe
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: laurenz.albe@cybertec.at, johnathantiamoh@gmail.com
Subject: Re: what do you do after pg_walreset ?
In-Reply-To: <dad7f74266b2b964c7d587b5ff5859929a46e447.camel@cybertec.at>
References: <CACoPQdYKGdAbyC9qdXv4tK5+4CAUbXmSqBnRuZnmO8wP=x_RFg@mail.gmail.com> <dad7f74266b2b964c7d587b5ff5859929a46e447.camel@cybertec.at>
* 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