Re: AW: AW: [Extern] Re: postgres restore & needed history files - Mailing list pgsql-general

From Laurenz Albe
Subject Re: AW: AW: [Extern] Re: postgres restore & needed history files
Date
Msg-id 4e35b38138ccda4c46139397f319893254c75349.camel@cybertec.at
Whole thread Raw
In response to AW: AW: [Extern] Re: postgres restore & needed history files  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
List pgsql-general
On Fri, 2023-01-13 at 11:23 +0000, Zwettler Markus (OIZ) wrote:
> > -----Ursprüngliche Nachricht-----
> > Von: Laurenz Albe <laurenz.albe@cybertec.at>
> > Gesendet: Freitag, 13. Januar 2023 11:25
> > An: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; pgsql-
> > general@lists.postgresql.org
> > Betreff: Re: AW: [Extern] Re: postgres restore & needed history files
> >
> > On Thu, 2023-01-12 at 16:50 +0000, Zwettler Markus (OIZ) wrote:
> > > What would you do in case of a disaster when all history files in
> > > pg_wal are gone and also deleted in the backup due to the backup retention?
> >
> > Easy.  Take a new base backup immediately and don't try to restore a backup that
> > was taken on an earlier timeline.
>
> Hope I got you right.
>
> You meant the latest backup within the latest timeline is always working even if the latest history files are gone.

Yes.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: glibc initdb options vs icu compatibility questions (PG15)
Next
From: Erik Wienhold
Date:
Subject: Re: Why is a Read-only Table Gets Autovacuumed "to prevent wraparound"