Skip to content

Commit e4b88c5

Browse files
committed
Use correct format placeholder for timeline IDs
Should be %u rather than %d.
1 parent 703c7a3 commit e4b88c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/postmaster/walsummarizer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
565565
if (unsummarized_tli == 0)
566566
ereport(ERROR,
567567
errcode(ERRCODE_INTERNAL_ERROR),
568-
errmsg_internal("no WAL found on timeline %d", latest_tli));
568+
errmsg_internal("no WAL found on timeline %u", latest_tli));
569569

570570
/*
571571
* Don't try to summarize anything older than the end LSN of the newest
@@ -909,7 +909,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
909909
* able to read a complete record.
910910
*/
911911
ereport(DEBUG1,
912-
errmsg_internal("could not read WAL from timeline %d at %X/%X: end of WAL at %X/%X",
912+
errmsg_internal("could not read WAL from timeline %u at %X/%X: end of WAL at %X/%X",
913913
tli,
914914
LSN_FORMAT_ARGS(xlogreader->EndRecPtr),
915915
LSN_FORMAT_ARGS(private_data->read_upto)));
@@ -1064,7 +1064,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
10641064

10651065
/* Tell the user what we did. */
10661066
ereport(DEBUG1,
1067-
errmsg("summarized WAL on TLI %d from %X/%X to %X/%X",
1067+
errmsg("summarized WAL on TLI %u from %X/%X to %X/%X",
10681068
tli,
10691069
LSN_FORMAT_ARGS(summary_start_lsn),
10701070
LSN_FORMAT_ARGS(summary_end_lsn)));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy