Re: pg_control_checkpoint(): add "data_checksum_version" (Pg19)?

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Ian Lawrence Barwick <barwick(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_control_checkpoint(): add "data_checksum_version" (Pg19)?
Date: 2026-08-18 09:55:36
Message-ID: aoQsGMa0l1LO7Qoa@bdtpg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Tue, Aug 18, 2026 at 10:41:51AM +0200, Daniel Gustafsson wrote:
> > On 18 Aug 2026, at 06:55, Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
>
> Added a new test here to make it's still reported per the initdb state.
>
> > Also worth checking in 004_offline.pl after,
> >
> > "
> > # Enable checksums offline using pg_checksums
> > $node->stop;
> > $node->checksum_enable_offline;
> > $node->start;
> > "
> >
> > that pg_control_init() still reports the initial disabled state? That would also
> > verify for the pg_checksums case.
>
> Added.

Thanks for the updated version!

> I also added another test for pg_control_checkpoint in 004_offline to test the
> state before and after a CHECKPOINT from offline checksum enabling.

Yeah, makes sense to me.

I don't have more comments, LGTM.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-08-18 09:57:39 Re: basebackup: do not verify checksums on pages written before enabling checksums
Previous Message Jakub Wartak 2026-08-18 09:51:05 Re: [WIP] Pipelined Recovery