Re: [GENERAL] Median, Quartile and Percentile Aggregate Functions

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: [GENERAL] Median, Quartile and Percentile Aggregate Functions
Дата
Msg-id 38BFC7A1.3343FFEC@austin.rr.com
обсуждение исходный текст
Ответ на Median, Quartile and Percentile Aggregate Functions  (Patrik Hall <phall@phall.kdsoft.fi>)
Список pgsql-general
Patrik Hall wrote:
>
> I am in need of median, quartile and percentile functions in postgres.
>
> Has anybody implemented any of them allready?
>
> I have the functions temporary solved in PHP right now but they are really
> slow as datarows are increasing in count.

I don't know much about php, but there is a perl stats module called
Statistics::Descriptive, available at CPAN, that has what you seek and
seems pretty quick (I haven't measured it).  I find that doing these
sorts of functions in perl tends overall to be faster than doing them
in postgres, though that would not be my intuition.

Cheers,
Ed Loehr

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

Предыдущее
От: Emmanuel DISCORS
Дата:
Сообщение: Re: [GENERAL] Postgres on MacOS... Is it even a possibility?
Следующее
От: "Chris Carbaugh"
Дата:
Сообщение: Help with installing 6.5.3 on RedHat6.1 - specifying template