Re: Add TLI number to name of files generated by pg_waldump --save-fullpage - Mailing list pgsql-hackers

From David Christensen
Subject Re: Add TLI number to name of files generated by pg_waldump --save-fullpage
Date
Msg-id CAOxo6XKCL3q-Nv8aTzaHFLdjfSSg7=3vv5aWoJmJELfgVJsFiA@mail.gmail.com
Whole thread Raw
In response to Add TLI number to name of files generated by pg_waldump --save-fullpage  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add TLI number to name of files generated by pg_waldump --save-fullpage
List pgsql-hackers
On Tue, Jun 27, 2023 at 1:12 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> Hi all,
> (Fujii-san and David in CC.)
>
> Fujii-san has reported on Twitter that we had better add the TLI
> number to what pg_waldump --save-fullpage generates for the file names
> of the blocks, as it could be possible that we overwrite some blocks.
> This information can be added thanks to ws_tli, that tracks the TLI of
> the opened segment.
>
> Attached is a patch to fix this issue, adding an open item assigned to
> me.  The file format is documented in the TAP test and the docs, the
> two only places that would need a refresh.
>
> Thoughts or comments?

Patch looks good, but agreed that that comment should also be fixed.

Thanks!

David



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PATCH] Honor PG_TEST_NOCLEAN for tempdirs
Next
From: Roberto Mello
Date:
Subject: Re: PostgreSQL 16 Beta 2 release announcement draft