Re: Update the LSN format in the comment example - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Update the LSN format in the comment example
Date
Msg-id CAHGQGwFix8N1+480Vud0+6zf99-ChYctrJi2YMHU90gtzNJ6fA@mail.gmail.com
Whole thread Raw
In response to Re: Update the LSN format in the comment example  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Update the LSN format in the comment example
List pgsql-hackers
On Tue, Aug 12, 2025 at 7:36 PM Fujii Masao <masao.fujii@gmail.com> wrote:
>
> On Tue, Aug 12, 2025 at 4:45 PM Japin Li <japinli@hotmail.com> wrote:
> >
> > Hi, all
> >
> > Commit 2633dae2e487 standardized LSN formatting with zero-padding. However,
> > a mistake was made (by me) in the example within a comment.
> >
> > This patch provides a fix for that.
> >
> > diff --git a/src/include/access/xlogdefs.h b/src/include/access/xlogdefs.h
> > index 514f03df0b6..2397fb24115 100644
> > --- a/src/include/access/xlogdefs.h
> > +++ b/src/include/access/xlogdefs.h
> > @@ -38,7 +38,7 @@ typedef uint64 XLogRecPtr;
> >  /*
> >   * Handy macro for printing XLogRecPtr in conventional format, e.g.,
> >   *
> > - * printf("%X/08X", LSN_FORMAT_ARGS(lsn));
> > + * printf("%X/%08X", LSN_FORMAT_ARGS(lsn));
> >   *
> >   * To avoid breaking translatable messages, we're directly applying the
> >   * LSN format instead of using a macro.
>
> LGTM.
> Barring any objections, I'll commit the patch.

Pushed. Thanks!

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: [WIP]Vertical Clustered Index (columnar store extension) - take2
Next
From: Japin Li
Date:
Subject: Re: Update the LSN format in the comment example