Re: array_agg and array_accum (patch)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: array_agg and array_accum (patch)
Дата
Msg-id 20365.1225127696@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: array_agg and array_accum (patch)  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> How else will you tell an aggregate function whose result depends on the 
> input order which order you want?

You feed it from a subquery that has ORDER BY.  The only reason the spec
needs this kluge is their insistence that ORDER BY not be used in
subqueries.  Now I grant that there's some basis in relational theory
for that stand, but they certainly feel free to ignore academic notions
of cleanliness everywhere else in the spec.
        regards, tom lane


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Hot Standby utility and administrator functions
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby utility and administrator functions