Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRLr-0003uj-Cz for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 16:54:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGRLo-0000nn-RD for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 16:54:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRLo-0000ng-JR for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 16:54:28 +0000 Received: from balrog.mythic-beasts.com ([2a00:1098:0:82:1000:0:2:1]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGRLm-000350-9R for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 16:54:28 +0000 Received: from [199.195.250.187] (port=57224 helo=hermes.aosc.io) by balrog.mythic-beasts.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hGRLf-0000hq-9M; Tue, 16 Apr 2019 17:54:23 +0100 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: gumblex@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 31AD1121E54; Tue, 16 Apr 2019 16:54:11 +0000 (UTC) Subject: Re: BUG #15758: regr_* return wrong answers for some valid data To: Jeff Janes , pgsql-bugs@lists.postgresql.org References: <15758-a5122fa4ae3e4176@postgresql.org> From: Dingyuan Wang Message-ID: <1bcc5cf4-b519-e7ff-a1c7-7c98cc818bab@aosc.io> Date: Wed, 17 Apr 2019 00:54:04 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BlackCat-Spam-Score: 0 X-Spam-Status: No, score=-0.1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Pg 12 does fix the problem, and the numbers are slightly better than that of Gnumeric and LibreOffice Calc. 2019/4/16 21:41, Jeff Janes: > On Tue, Apr 16, 2019 at 3:55 AM PG Bug reporting form > > wrote: > > The following bug has been logged on the website: > > Bug reference:      15758 > Logged by:          Dingyuan Wang > Email address: gumblex@aosc.io > PostgreSQL version: 11.2 > Operating system:   Debian > Description: > > This can reproduce on at least version 10 or 11, on Debian amd64. > Given the following data: > > > This will be improved in version 12 when that is released later this > year.  See the below commit: > > commit e954a727f0c8872bf5203186ad0f5312f6183746 > Author: Dean Rasheed > > Date:   Sat Oct 6 11:20:09 2018 +0100 > >     Improve the accuracy of floating point statistical aggregates. > > > > Cheers, > > Jeff