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

Поиск
Список
Период
Сортировка
Искать

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

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 14 Aug 2026, at 07:47, Bertrand Drouvot  wrote:

> Thanks for the updates!

Thanks for review!

> +# Regardless of the new state, pg_control_init() should still report checksums
> +# as off.
> 
> Could we also test the opposite case and ensure pg_control_init() still reports 1?
> Also, as 0001 fixes the offline case too, worth checking pg_checksums leaves the value
> reported by pg_control_init() unchanged?

Sure, I can add that as well.

> And should this test be part of 0001 instead of 0002?

Agreed, it should.

> +   version using an integer representation due to how they were originally
> +   implementated.
> 
> s/implementated/implemented/

Thanks, will fix.

--
Daniel Gustafsson



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

От:
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Дата:
Hi,

On Tue, Aug 18, 2026 at 10:41:51AM +0200, Daniel Gustafsson wrote:
> > On 18 Aug 2026, at 06:55, Bertrand Drouvot  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


FAQ