Re: Bug with ordering aggregates? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug with ordering aggregates?
Date
Msg-id 7232.1274197611@sss.pgh.pa.us
Whole thread Raw
In response to Bug with ordering aggregates?  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Bug with ordering aggregates?
List pgsql-hackers
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).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Bug with ordering aggregates?
Next
From: Thom Brown
Date:
Subject: Re: Bug with ordering aggregates?