From: Tomas Vondra <tomas@vondra.me>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Handle numeric overflow in numeric_minmax_multi_ops
Date: Thu, 12 Nov 2026 17:33:19 +0100
Message-ID: <c6b81733-b5e8-472f-862e-2e39e67f85b9@vondra.me> (raw)
In-Reply-To: <1830579.1793934447@sss.pgh.pa.us>
References: <E1xNysx-00000001q94-1L4O@gemulon.postgresql.org>
<1830579.1793934447@sss.pgh.pa.us>
On 11/6/26 04:07, Tom Lane wrote:
> Tomas Vondra <tomas.vondra@postgresql.org> writes:
>> Handle numeric overflow in numeric_minmax_multi_ops
>
> Hi, this commit is making a few buildfarm members unhappy,
> eg at [1]:
>
> In file included from brin_minmax_multi.c:72:0:
> brin_minmax_multi.c: In function \342\200\230brin_minmax_multi_distance_numeric\342\200\231:
> ../../../../src/include/nodes/miscnodes.h:54:15: warning: the comparison will always evaluate as \342\200\230true\342\200\231 for the address of \342\200\230escontext\342\200\231 will never be NULL [-Waddress]
> ((escontext) != NULL && IsA(escontext, ErrorSaveContext) && \\
> ^
> brin_minmax_multi.c:2070:6: note: in expansion of macro \342\200\230SOFT_ERROR_OCCURRED\342\200\231
> if (SOFT_ERROR_OCCURRED(&escontext))
> ^~~~~~~~~~~~~~~~~~~
>
> We have seen this before, and the way to silence it is
>
> - if (SOFT_ERROR_OCCURRED(&escontext))
> + if (escontext.error_occurred)
>
> regards, tom lane
>
Uh, I completely missed this report, and only noticed it now when I saw
the commit fixing it. Apologies and thanks for taking care of it!
Thanks
--
Tomas Vondra
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-committers@postgresql.org
Cc: tomas@vondra.me, tgl@sss.pgh.pa.us, tomas.vondra@postgresql.org
Subject: Re: pgsql: Handle numeric overflow in numeric_minmax_multi_ops
In-Reply-To: <c6b81733-b5e8-472f-862e-2e39e67f85b9@vondra.me>
References: <E1xNysx-00000001q94-1L4O@gemulon.postgresql.org> <1830579.1793934447@sss.pgh.pa.us> <c6b81733-b5e8-472f-862e-2e39e67f85b9@vondra.me>
* 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