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 2CE5B183-BF00-4958-9A93-9B980A554491@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>)
Responses Re: Why clearing the VM doesn't require registering vm buffer in wal record
List pgsql-hackers
On 16 Sep 2026, Melanie Plageman wrote:
> Vacuum works very hard to never end up with
> PD_ALL_VISIBLE cleared and the VM set. Perhaps we should do everything
> we can to avoid this happening with page modifications as well.

Would it be practical to assert that the VM all-visible bit is clear
whenever we clear PD_ALL_VISIBLE? There may be reasons we don't already
do this that I'm missing, especially during recovery when pages can be
ahead of the record being replayed. It seems like a useful check if we
can find the right conditions for it.

Thank you!


Best regards, Andrey Borodin.




pgsql-hackers by date:

Previous
From: Ayush Tiwari
Date:
Subject: pgoutput: schema cache cleanup after streamed 2PC
Next
From: Henri GASC
Date:
Subject: Re: [SQL/PGQ] Native executor for Graph query