]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix LSN format in REPACK worker debug message
authorÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 11:50:45 +0000 (13:50 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 11:50:45 +0000 (13:50 +0200)
Commit 6f6f284c7ee4 introduced use of LSN_FORMAT_ARGS across the whole
tree to remove use of manual bit-shifting, and commit 2633dae2e487
changed the printf format to be %X/%08X; however commit 28d534e2ae0a
violated both conventions by reintroducing the old manual-shift style
with the deprecated %X/%X format in one debug message.  Make that new
message conform to our style.

Author:  kenny <kennychen851228@gmail.com>
Backpatch-through: 19
Discussion: https://postgr.es/m/CAPXstDuWD8jg0=C8PXTXGSTTsZcjqJ+u+xKCrMpN99CXsxQzCg@mail.gmail.com

src/backend/commands/repack_worker.c

index db9ff057cc6b310d230788daeae267a54a0d5999..af7e2a947642abe017ac3e38f90d262c197a5538 100644 (file)
@@ -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;
                        }
                }