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 1xRXjw-000000014Oc-2g42 for pgsql-committers@arkaria.postgresql.org; Thu, 12 Nov 2026 16:33:32 +0000 Received: from localhost ([127.0.0.1]:51582 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xRXjv-00000003HW6-1lyG for pgsql-committers@arkaria.postgresql.org; Thu, 12 Nov 2026 16:33:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:44922) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xRXjv-00000003HVu-0Vyb for pgsql-committers@lists.postgresql.org; Thu, 12 Nov 2026 16:33:31 +0000 Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xRXjt-00000000bKY-2JWu for pgsql-committers@lists.postgresql.org; Thu, 12 Nov 2026 16:33:30 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 639823EDD5; Thu, 12 Nov 2026 16:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1794501201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hkcySzjttPNn3asgIH3kc2SSFvSr2JV9ZnzQloO4NJM=; b=Qa6dvcv1Mtamr+HPUb/5r8pptG6EbtUQBZb6eLYiCkVdrQl71pIU3v+OJIJm+iBWiFNIIC pcujCXmLQMIe2zFaKmY3DuFer7k9a9DrYx/Y7jm9LlSmt4xHPxy9xSYr5urF8P4Qy9BYOP Hh8fXw3HRV3BN6Zod0PmgujTJyA8YjyDMMDEBc/VAenfSvyOKxuUbbOlXLXnXRJrEofi9M MxaT4sOKFJT0+Thj74RXgdxYBHT/D6b+A+KHTsfQVODhaycSWArLSdxRFT5KpttB60po2n JePNss/VZY/oQCOE7WPivgI4gsI1M/xqX/4K8Z2hvHFi34exs5+9TBk9fqDpfw== Message-ID: Date: Thu, 12 Nov 2026 17:33:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Handle numeric overflow in numeric_minmax_multi_ops To: Tom Lane , Tomas Vondra Cc: pgsql-committers@lists.postgresql.org References: <1830579.1793934447@sss.pgh.pa.us> Content-Language: en-US From: Tomas Vondra In-Reply-To: <1830579.1793934447@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: tomas@vondra.me X-GND-State: clean X-GND-Score: 0 X-GND-Cause: dmFkZTGWwoqjM78mljoAybRhY/Qv9NSW2U19bWI67qXuA0LcBst9OPf7fywHMNiPN2y2PYm2iSoO5/ZY6R6xbBjB2TiuLDKgH/8LiQrrGvbFQMbeh06xZBu44Ykh8EypDN5O/SdpK1q2DENv9a5yvLsfzu4FEGWvjVZd7uyiF7Ou/Tv9lpKwq1iTMg1M7/muHZkMd/zBqGscfYlvpd+N6Vc3lBE+ArvsJ+R8cBAozZfktIXuzlu8ILZJAFhFzSd+mB2un1CN8EdMo3+Y3xolx116XjuxKlfsu84j5gwMadN6yjCIX6jNWfoQB/H0Au3EYg1Z8eenp8T/K3kXmBy6ROPv+hcYiiQ4PsIa+V4cnQc8dahThVUFXM5FkOVCoIyg83fZKZQeRqd8U/txXZME0kDBgektpEQfl2M9xd79OVadhsrF1TI28gMTywErgJcgZcM91ymB4wo1u7Cfgv5Bd/DwpG1bl2W7mO36GZTZ8iwrMX5bOASZPk6LoJwo/68jbNNbFlqZTmqFaqMfB0P/C1IRHnCC0ej154Ar6T/SNxyC4JQZdBrCC0fJz3/TzanEiDZj7moYUWIzJS5LD34aF5xmat3+olir4H7YwMcUuhvlwTNW1qGxXlw2SOKbyt9J0S6zRB6JOXKiqFmbDvmZhu9wpNiootD9ypBRivYxp/A4D7vfOQ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/6/26 04:07, Tom Lane wrote: > 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_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