Re: BUG #14008: corr, covar_pop function returns different values on the same dataset

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stepya(at)ukr(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14008: corr, covar_pop function returns different values on the same dataset
Date: 2016-03-09 18:23:11
Message-ID: 32087.1457547791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Stepya(at)ukr(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-03-09 19:00:46 Re: BUG #14010: Multi-valued Index-only scans do not properly handle nulls in search
Previous Message gtakahashi 2016-03-09 16:51:36 BUG #14010: Multi-valued Index-only scans do not properly handle nulls in search