Re: proposal: tuplestore, tuplesort aggregate functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: tuplestore, tuplesort aggregate functions
Дата
Msg-id 18941.1282139604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на proposal: tuplestore, tuplesort aggregate functions  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: tuplestore, tuplesort aggregate functions
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I still thinking about a "median" type functions. My idea is to
> introduce a new syntax for stype definition - like

> stype = type, or
> stype = ARRAY OF type [ ORDER [ DESC | ASC ]], or
> stype = TUPLESTORE OF type, or
> stype = TUPLESORT OF type [ DESC | ASC ]

This seems like a fairly enormous amount of conceptual (and code)
infrastructure just to make it possible to build median() out of spare
parts.  It's also exposing some implementation details that I'd just as
soon not expose in SQL.  I'd rather just implement median as a
special-purpose aggregate.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Progress indication prototype
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: tuplestore, tuplesort aggregate functions