From: 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, 05 Nov 2026 22:07:27 -0500
Message-ID: <1830579.1793934447@sss.pgh.pa.us> (raw)
In-Reply-To: <E1xNysx-00000001q94-1L4O@gemulon.postgresql.org>
References: <E1xNysx-00000001q94-1L4O@gemulon.postgresql.org>
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
[1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=chimaera&dt=2026-11-05%2012%3A14%3...
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: tgl@sss.pgh.pa.us, tomas.vondra@postgresql.org
Subject: Re: pgsql: Handle numeric overflow in numeric_minmax_multi_ops
In-Reply-To: <1830579.1793934447@sss.pgh.pa.us>
References: <E1xNysx-00000001q94-1L4O@gemulon.postgresql.org> <1830579.1793934447@sss.pgh.pa.us>
* 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