From 77d5eb6724aafdcb52e63a43c8c0f2d220786d12 Mon Sep 17 00:00:00 2001 From: kenny Date: Sat, 18 Jul 2026 11:53:01 +0800 Subject: [PATCH v1] Fix LSN format in REPACK worker debug message Commit 2633dae2e48 standardized all LSN output to the zero-padded %X/%08X format, but the REPACK CONCURRENTLY patch reintroduced the old manual-shift style in one debug message. Use LSN_FORMAT_ARGS like everywhere else, so the LSN prints consistently with the rest of the tree. --- src/backend/commands/repack_worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/commands/repack_worker.c b/src/backend/commands/repack_worker.c index db9ff057cc6..af7e2a94764 100644 --- a/src/backend/commands/repack_worker.c +++ b/src/backend/commands/repack_worker.c @@ -397,8 +397,8 @@ decode_concurrent_changes(LogicalDecodingContext *ctx, { LogicalIncreaseRestartDecodingForSlot(end_lsn, end_lsn); LogicalConfirmReceivedLocation(end_lsn); - elog(DEBUG1, "REPACK: confirmed receive location %X/%X", - (uint32) (end_lsn >> 32), (uint32) end_lsn); + elog(DEBUG1, "REPACK: confirmed receive location %X/%08X", + LSN_FORMAT_ARGS(end_lsn)); repack_current_segment = segno_new; } } -- 2.50.1 (Apple Git-155)