From: Nathan Bossart <nathandbossart@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: wenhui qiu <qiuwenhuifx@gmail.com>
Cc: Shinya Kato <shinya11.kato@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: enhance wraparound warnings
Date: Fri, 19 Jun 2026 13:43:22 -0500
Message-ID: <ajWNyueXTwLARwj5@nathan> (raw)
In-Reply-To: <CAHGQGwHWZTsR6bjdfpa+pOkBPjoXXm2LuJ+5nh+CvdyqEASHcQ@mail.gmail.com>
References: <aRdhSSFb9zZH_0zc@nathan>
<CAOzEurR9vD9kZ7=LAYqTDRju8wvCyvyEeiEtJVHJ_C6wH1u_MA@mail.gmail.com>
<aadFHfocomG20wgM@nathan>
<aatR8GUfwWA7ciFV@nathan>
<CAGjGUALHrAWK4jDK9xvwBHg-5Qw9bZF9yqNHHAXcVQrce8KJtw@mail.gmail.com>
<ab2dGqvlPLoihxBK@nathan>
<CAHGQGwHWZTsR6bjdfpa+pOkBPjoXXm2LuJ+5nh+CvdyqEASHcQ@mail.gmail.com>
On Sat, Jun 20, 2026 at 03:13:23AM +0900, Fujii Masao wrote:
> The percentage is calculated as (xidWrapLimit - xid) divided by half
> of the ID space. This represents the remaining ID space before wraparound,
> not the percentage of IDs that are still available for use. Since
> PostgreSQL stops assigning new XIDs/MultiXactIds at the stop limit
> before reaching the wraparound limit, the current wording could be
> interpreted as overstating how many IDs remain usable.
>
> So, how about changing the wording to match the calculation? For example:
>
> Approximately XX.XX% of transaction ID space remains before wraparound.
>
> and similarly for MultiXactIds.
That seems reasonable to me, thanks.
--
nathan
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-hackers@postgresql.org
Cc: nathandbossart@gmail.com, masao.fujii@gmail.com, qiuwenhuifx@gmail.com, shinya11.kato@gmail.com
Subject: Re: enhance wraparound warnings
In-Reply-To: <ajWNyueXTwLARwj5@nathan>
References: <aRdhSSFb9zZH_0zc@nathan> <CAOzEurR9vD9kZ7=LAYqTDRju8wvCyvyEeiEtJVHJ_C6wH1u_MA@mail.gmail.com> <aadFHfocomG20wgM@nathan> <aatR8GUfwWA7ciFV@nathan> <CAGjGUALHrAWK4jDK9xvwBHg-5Qw9bZF9yqNHHAXcVQrce8KJtw@mail.gmail.com> <ab2dGqvlPLoihxBK@nathan> <CAHGQGwHWZTsR6bjdfpa+pOkBPjoXXm2LuJ+5nh+CvdyqEASHcQ@mail.gmail.com> <ajWNyueXTwLARwj5@nathan>
* 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