| От | Stephen Frost |
|---|---|
| Тема | Re: Bug with ordering aggregates? |
| Дата | |
| Msg-id | 20100518164217.GI21875@tamriel.snowman.net обсуждение |
| Ответ на | Re: Bug with ordering aggregates? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Bug with ordering aggregates?
|
| Список | pgsql-hackers |
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > 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)
>
> Looks fine to me: you have two ordering columns (the second rather
> useless, but that's no matter).
Ah, yeah, guess I'll just complain that having the order by look like
it's an argument to an aggregate makes things confusing. Not much to be
done about it though.
Thanks,
Stephen
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера