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.96) (envelope-from ) id 1wuC9f-000Wfp-1t for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Aug 2026 16:50:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wuC9d-0098CF-1Q for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Aug 2026 16:50:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wuC9d-0098C7-0d for pgsql-bugs@lists.postgresql.org; Wed, 12 Aug 2026 16:50:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wuC9b-00000000OCP-3A51 for pgsql-bugs@lists.postgresql.org; Wed, 12 Aug 2026 16:50:13 +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 67CGo96C2796775; Wed, 12 Aug 2026 12:50:09 -0400 From: Tom Lane To: Andrey Rachitskiy cc: feasiblechart@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19615: COVAR_POP / COVAR_SAMP / REGR_SXY return 0.0 instead of NaN In-reply-to: <2395189.1786463799@sss.pgh.pa.us> References: <19615-c7e390593416f6b6@postgresql.org> <2395189.1786463799@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 11 Aug 2026 11:56:39 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2796773.1786553409.1@sss.pgh.pa.us> Date: Wed, 12 Aug 2026 12:50:09 -0400 Message-ID: <2796774.1786553409@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Yeah, I just arrived at pretty much the same conclusion. We get > Inf/NaN handling right for Sxx and Syy, but not for the cross-product > Sxy. Pushed after some fooling with the comment and test cases. regards, tom lane