Re: Inconsistent LSN format in pg_waldump output
Japin Li <japinli@hotmail.com>
From: Japin Li <japinli@hotmail.com>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Michael Paquier <michael@paquier.xyz>, Masahiko Sawada
<sawada.mshk@gmail.com>, PostgreSQL Hackers
<pgsql-hackers@lists.postgresql.org>
Date: 2025-07-04T02:32:20Z
Lists: pgsql-hackers
Attachments
- v4-0001-Standardize-LSN-formatting-by-zero-padding.patch (text/x-diff)
On Thu, 03 Jul 2025 at 18:07, Álvaro Herrera <alvherre@kurilemu.de> wrote: > On 2025-Jul-03, Japin Li wrote: > >> Providing two LSN formats — %X%08X for translatable messages and >> LSN_FORMAT for non-translatable ones — seems to offer no clear advantage. >> >> I'd prefer to use %X/%08X directly and add the description to the >> LSN_FORMAT_ARGS macro. > > WFM. > Many thanks! V4 of the patch is now attached. I've opted to directly use %X/%08X for LSN formatting in this patch, with an accompanying comment near LSN_FORMAT_ARGS. -- Regards, Japin Li
Commits
-
Fix a couple more places in docs for pg_lsn change
- aa39b4e35ac6 19 (unreleased) landed
-
Adapt pg_upgrade test to pg_lsn output format difference
- 3adcf9fbd8ba 19 (unreleased) landed
-
Standardize LSN formatting by zero padding
- 2633dae2e487 19 (unreleased) landed