pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more information for WAL records of hash index AMs
Date: Fri, 12 Sep 2025 01:31:36 +0000
Message-ID: <E1uwsdT-000Gh4-2v@gemulon.postgresql.org> (raw)

Add more information for WAL records of hash index AMs

hashdesc.c was missing a couple of fields in its record descriptions, as
of:
- is_prev_bucket_same_wrt for SQUEEZE_PAGE.
- procid for INIT_META_PAGE.
- old_bucket_flag and new_bucket_flag for SPLIT_ALLOCATE_PAGE.

The author has noted the first hole, and I have spotted the others while
double-checking this area of the code.  Note that the only data missing
now are the offsets stored in VACUUM_ONE_PAGE.  We could perhaps add
them, if somebody sees value in this data, even if it makes the output
larger.  These are discarded here.

Author: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/CALdSSPjc-OVwtZH0Xrkvg7n=2ZwdbMJzqrm_ed_CfjiAzuKVGg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/528dadf691df3023fbb0bd71da5c6087c2d49d6a

Modified Files
--------------
src/backend/access/rmgrdesc/hashdesc.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)



Message-ID: <E1uwsdT-000Gh4-2v@gemulon.postgresql.org>
Permalink:  ../E1uwsdT-000Gh4-2v@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uwsdT-000Gh4-2v@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add more information for WAL records of hash index AMs
  In-Reply-To: <E1uwsdT-000Gh4-2v@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