Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adilR-0006ji-8P for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 18:23:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adilQ-0002jC-Id for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 18:23:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adilP-0002ie-Kh for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 18:23:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adilM-0002Oc-Lf for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 18:23:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u29INBop032088; Wed, 9 Mar 2016 13:23:11 -0500 From: Tom Lane To: Stepya@ukr.net cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14008: corr, covar_pop function returns different values on the same dataset In-reply-to: <20160309133903.6674.13709@wrigleys.postgresql.org> References: <20160309133903.6674.13709@wrigleys.postgresql.org> Comments: In-reply-to Stepya@ukr.net message dated "Wed, 09 Mar 2016 13:39:03 +0000" Date: Wed, 09 Mar 2016 13:23:11 -0500 Message-ID: <32087.1457547791@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Stepya@ukr.net writes: > Aggregation functions line corr, covar_pop returns different values > depending on sorting order of the dataset. AFAICS, that's just rounding error, which is inevitable when working with floating-point data. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs