Re: Why clearing the VM doesn't require registering vm buffer in wal record

From: Melanie Plageman <melanieplageman(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Andres Freund <andres(at)anarazel(dot)de>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: Why clearing the VM doesn't require registering vm buffer in wal record
Date: 2026-11-30 18:35:10
Message-ID: CAAKRu_an7+TQAkz4BZ9NZgVGGSsHWAN6r_j9mA0aC1maJSTMGw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 15, 2026 at 5:58 PM Melanie Plageman
<melanieplageman(at)gmail(dot)com> wrote:
>
> There are
> three patches remaining that I proposed for master that do assorted
> validations: visibility map and PD_ALL_VISIBLE flag validations and
> some validation in the WAL machinery that registered buffers get used.
> I plan to commit 0001 and 0003 once my other patches have gone through
> the buildfarm. I'm considering holding onto 0002 until I add
> WAL-logging to the VM corruption repair code in
> heap_page_fix_vm_corruption() -- without which,
> wal_consistency_checking could fail for pages that had corruption
> fixed.

0001 in this set is pushed. 0002 can't be pushed because we don't
always WAL-log updates to only PD_ALL_VISIBLE and for other reasons
documented in [1]. A new version of 0003 is attached here as v7. I
plan to push later today since the earlier version was already
reviewed.

- Melanie

[1] https://www.postgresql.org/message-id/flat/CAAKRu_bozJHE%3DZa4o1yZaPmW_rjG5DrUSDfEjOZkjvmaeN%2BEEA%40mail.gmail.com

Attachment Content-Type Size
v7-0001-Assert-that-redo-accounts-for-each-WAL-block-refe.patch text/x-patch 6.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Reiß 2026-11-30 18:42:43 Re: Stack-based tracking of per-node WAL/buffer usage
Previous Message Andres Freund 2026-11-30 18:31:20 Re: Speed up binary COPY TO by not allocating 1 kB per datum