From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Japin Li <japinli(at)hotmail(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Update the LSN format in the comment example |
Date: | 2025-08-12 10:36:15 |
Message-ID: | CAHGQGwFO=cix4AHH293WEAw_KBmrLV2FVLOOUyNZL3_pbek2Pg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 12, 2025 at 4:45 PM Japin Li <japinli(at)hotmail(dot)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.
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2025-08-12 10:58:25 | Re: Excessive LOG messages from replication slot sync worker |
Previous Message | Etsuro Fujita | 2025-08-12 10:28:04 | Re: Obsolete comments in ResultRelInfo struct |