Re: New WAL record to detect the checkpoint redo location - Mailing list pgsql-hackers

From Robert Haas
Subject Re: New WAL record to detect the checkpoint redo location
Date
Msg-id CA+TgmoYV0+U94mU2O2agx03AVzmK81w7uv98_6N5ciguc3VF-A@mail.gmail.com
Whole thread Raw
In response to Re: New WAL record to detect the checkpoint redo location  (Michael Paquier <michael@paquier.xyz>)
Responses Re: New WAL record to detect the checkpoint redo location
List pgsql-hackers
On Tue, Oct 17, 2023 at 8:35 PM Michael Paquier <michael@paquier.xyz> wrote:
> Suggestion is from here, with a test for pg_walinspect after it runs
> its online checkpoint (see the full-page case):
> https://www.postgresql.org/message-id/ZOvf1tu6rfL/B2PW@paquier.xyz
>
> +-- Check presence of REDO record.
> +SELECT redo_lsn FROM pg_control_checkpoint() \gset
> +SELECT start_lsn = :'redo_lsn'::pg_lsn AS same_lsn, record_type
> +  FROM pg_get_wal_record_info(:'redo_lsn');

I added a variant of this test case. Here's v10.

--
Robert Haas
EDB: http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: run pgindent on a regular basis / scripted manner
Next
From: Tom Lane
Date:
Subject: Re: Query execution in Perl TAP tests needs work