pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: 1548140642@qq.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19868: pg_resetwal prints uint32 WAL segment size as -1 bytes
Date: Wed, 11 Nov 2026 15:12:06 +0200
Message-ID: <b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi> (raw)
In-Reply-To: <19868-5efb930ace5bd191@postgresql.org>
References: <19868-5efb930ace5bd191@postgresql.org>

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







view thread (2+ messages)

Message-ID: <b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi>
Permalink:  ../b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi/
Also on:    postgresql.org/message-id/b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: hlinnaka@iki.fi, 1548140642@qq.com
  Subject: Re: BUG #19868: pg_resetwal prints uint32 WAL segment size as -1 bytes
  In-Reply-To: <b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi>
  References: <19868-5efb930ace5bd191@postgresql.org> <b706f417-b7c2-47f1-9b8c-80ff3953aa4e@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox