postgresql/src/bin/pg_rewind
Álvaro Herrera 2633dae2e4
Standardize LSN formatting by zero padding
This commit standardizes the output format for LSNs to ensure consistent
representation across various tools and messages.  Previously, LSNs were
inconsistently printed as `%X/%X` in some contexts, while others used
zero-padding.  This often led to confusion when comparing.

To address this, the LSN format is now uniformly set to `%X/%08X`,
ensuring the lower 32-bit part is always zero-padded to eight
hexadecimal digits.

Author: Japin Li <japinli@hotmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/ME0P300MB0445CA53CA0E4B8C1879AF84B641A@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
2025-07-07 13:57:43 +02:00
..
po Translation updates 2025-05-05 12:04:49 +02:00
t Run pgperltidy 2025-06-29 21:14:21 -04:00
.gitignore Improve logging of TAP tests. 2015-07-09 13:19:10 +03:00
datapagemap.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
datapagemap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
file_ops.c initdb: Add --no-sync-data-files. 2025-03-25 16:02:35 -05:00
file_ops.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
filemap.c Use XLOG_CONTROL_FILE macro consistently for control file name. 2025-04-07 09:27:33 +09:00
filemap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq_source.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00
local_source.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls.mk Add missing source files to nls.mk 2024-06-13 10:17:36 +02:00
parsexlog.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00
pg_rewind.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00
pg_rewind.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
rewind_source.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
timeline.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00