Re: pg_rewind and hint bits leads to visibility corruption

From: Jan Nidzwetzki <jan(at)planetscale(dot)com>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org, Tom Pang <tom(at)planetscale(dot)com>
Subject: Re: pg_rewind and hint bits leads to visibility corruption
Date: 2026-11-24 09:47:08
Message-ID: c53e1772-080d-49a8-a25b-0d0bda682965@planetscale.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Shihao,

Thanks for the review!

On 24.11.26 02:54, shihao zhong wrote:

> One nit, looks like your test still passes if oldestXid[i] becomes
> oldestXid[0]. Could you
> add a CHECKPOINT on A after ROLLBACK PREPARED when $restart is set?

Good catch, thanks. v3 adds the CHECKPOINT. Now, with oldestXid[0], the
test fails as expected, but it passes with the patch applied. Nothing
else has changed.

The patch has been added to the open commitfest:
https://commitfest.postgresql.org/patch/7693/

Best regards
Jan

--
Jan Nidzwetzki
PlanetScale

Attachment Content-Type Size
v3-0001-Don-t-let-unlogged-hint-bits-reach-disk-on-buffer.patch text/plain 30.2 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Álvaro Herrera 2026-11-24 08:10:37 Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off`