Re: BUG #19432: recovery fails at invalid checkpoint record

From: Felix Hamme <felix(dot)hamme(at)ionos(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19432: recovery fails at invalid checkpoint record
Date: 2026-03-16 13:56:03
Message-ID: CAFhNxxSXn_Co1E8MwMmu65Ca1Q1brDbn+EU7jNUzgV5+vp2-bQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Timeline history files can be needed multiple times, ok. My question
was about WAL files only.
I'm tempted to use a restore_command which does cp for history files
and mv for WAL files, to optimize performance and disk usage.
An AI told me that a second restore attempt for the same WAL file
could only happen if recovery is resumed after a crash.

Kind regards
Felix Hamme

On Fri, Mar 13, 2026 at 5:37 PM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> On Fri, 2026-03-13 at 09:35 +0100, Felix Hamme wrote:
> > Is it safe in general to use mv for wal files? In other words, do the
> > currently supported postgres versions run restore_command only once
> > per wal file?
>
> As you found out, no...
>
> Yours,
> Laurenz Albe

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2026-03-16 15:07:51 Re: BUG #19432: recovery fails at invalid checkpoint record
Previous Message Tom Lane 2026-03-15 23:00:28 Re: BUG #19429: An issue regarding the processing of Oid as an int type in ecpg