pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify vacuum visibility assertion
Date: Wed, 10 Dec 2025 16:32:43 +0000
Message-ID: <E1vTN7K-0000RP-1i@gemulon.postgresql.org> (raw)

Simplify vacuum visibility assertion

Phase I vacuum gives the page a once-over after pruning and freezing to
check that the values of all_visible and all_frozen agree with the
result of heap_page_is_all_visible(). This is meant to keep the logic in
phase I for determining visibility in sync with the logic in phase III.

Rewrite the assertion to avoid an Assert(false).

Suggested by Andres Freund.

Author: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/mhf4vkmh3j57zx7vuxp4jagtdzwhu3573pgfpmnjwqa6i6yj5y%40sy4ymcdtdklo

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bd298f54a0d60a0376959e10074aa07cbad267f2

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)



Message-ID: <E1vTN7K-0000RP-1i@gemulon.postgresql.org>
Permalink:  ../E1vTN7K-0000RP-1i@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vTN7K-0000RP-1i@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify vacuum visibility assertion
  In-Reply-To: <E1vTN7K-0000RP-1i@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox