9.4rc bug in percentile_cont

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема 9.4rc bug in percentile_cont
Дата
Msg-id 878uicrq9w.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответы Re: 9.4rc bug in percentile_cont  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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.

e.g.

select percentile_cont(array[0.4,0.6]) within group (order by gs)
  from generate_series(1,2) gs;
ERROR: missing row in percentile_cont

Proposed patch (against current master) attached.

--
Andrew (irc:RhodiumToad)


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Final Patch for GROUPING SETS
Следующее
От: Craig Ringer
Дата:
Сообщение: Making BackgroundWorkerHandle a complete type or offering a worker enumeration API?