Re: wip: functions median and percentile

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: wip: functions median and percentile
Дата
Msg-id AANLkTintEz0aPx4pg3c_Y7n6kkfMdgV6gixB_je4fTHf@mail.gmail.com
обсуждение исходный текст
Ответ на Re: wip: functions median and percentile  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: wip: functions median and percentile  (Josh Berkus <josh@agliodbs.com>)
Re: wip: functions median and percentile  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On Sun, Oct 10, 2010 at 2:16 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> It was pointed out upthread that while median isn't presently
> in the standard, Oracle defines it in terms of percentile_cont(0.5)
> which *is* in the standard.

Uhmm, then why don't we implement that? We could provide median() as a
short-cut but percentile_cont() doesn't sound much harder to implement
than median() and more general.

-- 
greg


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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: wip: functions median and percentile
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: wip: functions median and percentile