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