On 11/11/2026 07:48, PG Bug reporting form wrote:
> When pg_resetwal -n reads a damaged pg_control whose uint32 xlog_seg_size
> field contains 4294967295, its invalid-WAL-segment-size warning prints "-1
> bytes". The diagnostic should preserve the unsigned field value and print
> "4294967295 bytes".
This is completely inconsequential.
Peter Eisentraut experimented with -Wformat=signedness a while back, see
https://www.postgresql.org/message-id/a37346d0-96d0-42f1-a5d9-8f31872818c6@eisentraut.org.
This particular change was also covered by those patches.
- Heikki