Re: Failing assertion while taking a restartpoint during crash recovery

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Imran Zaheer <imran(dot)zhir(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Failing assertion while taking a restartpoint during crash recovery
Date: 2026-08-17 09:15:56
Message-ID: CAHGQGwERPZ20j0-J15AVFA8G+DsGzhX+679_OX5Zta_8NDOJfA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Aug 16, 2026 at 2:14 AM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> I've applied the cosmetic changes to the patch and created patches
> for the older branches.

Regarding the patch for v14, since the checkpointer is not started
during crash recovery in v14, it never runs a restartpoint during
crash recovery, so the reported issue cannot occur in the usual way.

But, a fast shutdown during crash recovery does run a restartpoint,
which can trigger the same assertion failure in v14. So the bug fix
should be backpatched to v14 as well, I think.

Regards,

--
Fujii Masao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rui Zhao 2026-08-17 09:29:02 Re: [PATCH] Preserve replication origin OIDs in pg_upgrade
Previous Message Daniel Gustafsson 2026-08-17 09:07:26 Re: basebackup: do not verify checksums on pages written before enabling checksums