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: Keep all_frozen updated in heap_page_prune_and_freeze
Date: Thu, 20 Nov 2025 16:04:59 +0000
Message-ID: <E1vM79W-000UmN-2K@gemulon.postgresql.org> (raw)

Keep all_frozen updated in heap_page_prune_and_freeze

Previously, we relied on all_visible and all_frozen being used together
to ensure that all_frozen was correct, but it is better to keep both
fields updated.

Future changes will separate their usage, so we should not depend on
all_visible for the validity of all_frozen.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/flat/CAAKRu_ZMw6Npd_qm2KM%2BFwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/351d7e244183ee33400c19e4b52c5446eb29038c

Modified Files
--------------
src/backend/access/heap/pruneheap.c  | 60 ++++++++++++++++++++----------------
src/backend/access/heap/vacuumlazy.c |  9 +++---
2 files changed, 37 insertions(+), 32 deletions(-)



Message-ID: <E1vM79W-000UmN-2K@gemulon.postgresql.org>
Permalink:  ../E1vM79W-000UmN-2K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vM79W-000UmN-2K@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: Keep all_frozen updated in heap_page_prune_and_freeze
  In-Reply-To: <E1vM79W-000UmN-2K@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