Re: 9.4rc bug in percentile_cont

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 9.4rc bug in percentile_cont
Date: 2014-12-13 15:35:34
Message-ID: 3683.1418484934@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
> Just got a report on IRC of a bug in the array version of
> percentile_cont; if two of the requested percentiles were between the
> same pair of input rows, the result could be wrong or an error would
> be generated.

Oooh, good catch.

> Proposed patch (against current master) attached.

I think this patch could be improved a bit; will work on it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-12-13 15:39:24 Re: pgbench -f and vacuum
Previous Message Andrew Dunstan 2014-12-13 15:29:29 Re: Status of CF 2014-10 and upcoming 2014-12