Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPAIe-00000000WL4-2XRj for pgsql-committers@arkaria.postgresql.org; Fri, 06 Nov 2026 03:07:34 +0000 Received: from localhost ([127.0.0.1]:51680 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xPAId-0000000FvHT-3VFP for pgsql-committers@arkaria.postgresql.org; Fri, 06 Nov 2026 03:07:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:60534) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPAId-0000000FvHL-1I1j for pgsql-committers@lists.postgresql.org; Fri, 06 Nov 2026 03:07:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xPAIa-00000000UPk-0NsZ; Fri, 06 Nov 2026 03:07:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6A637RID1830580; Thu, 5 Nov 2026 22:07:27 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6A637RID1830580 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1793934447; bh=tcDzB4LjR3VVmihzRdIeTienECymeHipXSqEU0/nUfQ=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=HHIZ4/WYugQ10Rk9FNsVS4A0+8dlbhwqNIv/USxY2biG0VCx5F/9an3NfQVMaxf/j mWL47EV33NONL8nhJardVNQojvaq5jmGkaAE4rbQ420L65rqjFo0PWExbLPpqTb4Dv aPh2U/YvfhSe0WEN0+cCyH50TnH/yV78gfToka30= From: Tom Lane To: Tomas Vondra cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Handle numeric overflow in numeric_minmax_multi_ops In-reply-to: References: Comments: In-reply-to Tomas Vondra message dated "Mon, 02 Nov 2026 20:44:07 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1830578.1793934447.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Nov 2026 22:07:27 -0500 Message-ID: <1830579.1793934447@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra 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_nu= meric\342\200\231: ../../../../src/include/nodes/miscnodes.h:54:15: warning: the comparison w= ill always evaluate as \342\200\230true\342\200\231 for the address of \34= 2\200\230escontext\342\200\231 will never be NULL [-Waddress] ((escontext) !=3D NULL && IsA(escontext, ErrorSaveContext) && \\ ^ brin_minmax_multi.c:2070:6: note: in expansion of macro \342\200\230SOFT_E= RROR_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=3Dchimae= ra&dt=3D2026-11-05%2012%3A14%3A14&stg=3Dbuild