Bug with ordering aggregates?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Bug with ordering aggregates?
Дата
Msg-id 20100518153734.GH21875@tamriel.snowman.net
обсуждение исходный текст
Ответы Re: Bug with ordering aggregates?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Bug with ordering aggregates?  (Thom Brown <thombrown@gmail.com>)
Список pgsql-hackers
Greetings,
 This doesn't seem right to me:

postgres=# select
postgres-# string_agg(column1::text order by column1 asc,',')
postgres-# from (values (3),(4),(1),(2)) a;string_agg
------------1234
(1 row)
 I'm thinking we should toss a syntax error here and force the 'order by' to be at the end of any arguments to the
aggregate.Alternatively, we should actually make this work like this one does: 

postgres=# select
postgres-# string_agg(column1::text,',' order by column1 asc)
postgres-# from (values (3),(4),(1),(2)) a;string_agg
------------1,2,3,4
(1 row)
Thanks,
    Stephen

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Clarifications of licences on pgfoundry
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug with ordering aggregates?