Use correct format placeholder for timeline IDs
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 13 Feb 2024 05:54:58 +0000 (06:54 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 13 Feb 2024 05:54:58 +0000 (06:54 +0100)
Should be %u rather than %d.

src/backend/postmaster/walsummarizer.c

index 9b883c21ca48fc8031754fd8b3926b4468805fa3..3e1b146538689a6ff673b6eb7567b65a51866b74 100644 (file)
@@ -565,7 +565,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
        if (unsummarized_tli == 0)
                ereport(ERROR,
                                errcode(ERRCODE_INTERNAL_ERROR),
-                               errmsg_internal("no WAL found on timeline %d", latest_tli));
+                               errmsg_internal("no WAL found on timeline %u", latest_tli));
 
        /*
         * 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,
                                 * able to read a complete record.
                                 */
                                ereport(DEBUG1,
-                                               errmsg_internal("could not read WAL from timeline %d at %X/%X: end of WAL at %X/%X",
+                                               errmsg_internal("could not read WAL from timeline %u at %X/%X: end of WAL at %X/%X",
                                                                                tli,
                                                                                LSN_FORMAT_ARGS(xlogreader->EndRecPtr),
                                                                                LSN_FORMAT_ARGS(private_data->read_upto)));
@@ -1064,7 +1064,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
 
                /* Tell the user what we did. */
                ereport(DEBUG1,
-                               errmsg("summarized WAL on TLI %d from %X/%X to %X/%X",
+                               errmsg("summarized WAL on TLI %u from %X/%X to %X/%X",
                                           tli,
                                           LSN_FORMAT_ARGS(summary_start_lsn),
                                           LSN_FORMAT_ARGS(summary_end_lsn)));