Bug with ordering aggregates? - Mailing list pgsql-hackers

From Stephen Frost
Subject Bug with ordering aggregates?
Date
Msg-id 20100518153734.GH21875@tamriel.snowman.net
Whole thread Raw
Responses Re: Bug with ordering aggregates?
Re: Bug with ordering aggregates?
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Clarifications of licences on pgfoundry
Next
From: Tom Lane
Date:
Subject: Re: Bug with ordering aggregates?