pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Formalize WAL record for XLOG_CHECKPOINT_REDO
Date: Tue, 31 Mar 2026 08:01:06 +0000
Message-ID: <E1w7U25-002H3C-0y@gemulon.postgresql.org> (raw)

Formalize WAL record for XLOG_CHECKPOINT_REDO

XLOG_CHECKPOINT_REDO only contains the wal_level copied straight in
without an encapsulating record structure. While it works, it makes
future uses of XLOG_CHECKPOINT_REDO hard as there is nowhere to put
new data items.  This fix this was inspired by the online checksums
patch which adds data to this record,  but this change has value on
its own.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/c92b5d8b-bc03-47bc-b209-2e4a719eee32@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/097ab69d17f74e3c45b8c092d29df74f59bb5421

Modified Files
--------------
src/backend/access/rmgrdesc/xlogdesc.c | 6 +++---
src/backend/access/transam/xlog.c      | 8 +++++++-
src/backend/postmaster/walsummarizer.c | 5 ++++-
src/include/access/xlog_internal.h     | 6 ++++++
src/tools/pgindent/typedefs.list       | 1 +
5 files changed, 21 insertions(+), 5 deletions(-)



Message-ID: <E1w7U25-002H3C-0y@gemulon.postgresql.org>
Permalink:  ../E1w7U25-002H3C-0y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w7U25-002H3C-0y@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: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Formalize WAL record for XLOG_CHECKPOINT_REDO
  In-Reply-To: <E1w7U25-002H3C-0y@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