Re: Why clearing the VM doesn't require registering vm buffer in wal record - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Why clearing the VM doesn't require registering vm buffer in wal record
Date
Msg-id 7A3B2E5A-6E83-46BE-8705-EBCB7CFD5B58@yandex-team.ru
Whole thread
In response to Re: Why clearing the VM doesn't require registering vm buffer in wal record  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-hackers
Hi Melanie,

On 24 Sep 2026, Melanie Plageman wrote:
> v2-0001 is 19-only and fixes the divergent VM bits on the standby

The UPDATE fallback from v1 is missing in both versions of 0001.
heap_xlog_update() handles VM_OLD/VM_NEW itself, without calling
heap_xlog_vm_clear(), so an unregistered VM page is still skipped.

I reproduced this with UPDATE in your CREATE DATABASE/failover scenario
on master. Could we add the fallback there too?

Separately, Shihao's v3 [0] adds PageInit() fix on top of your 0002.

Thank you!


Best regards, Andrey Borodin.

[0] https://www.postgresql.org/message-id/CAGRkXqSZXoazu1x48pz2SuW_xHYQDdRcbp2HNCfRNm_WLF8aYA%40mail.gmail.com




pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Parallel Apply
Next
From: Kirill Reshke
Date:
Subject: Re: Fix reindexdb with parallel index-level conrurrent run