Re: Bug with ordering aggregates?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug with ordering aggregates?
Date: 2010-05-18 15:46:51
Message-ID: 7232.1274197611@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2010-05-18 15:57:02 Re: Bug with ordering aggregates?
Previous Message Stephen Frost 2010-05-18 15:37:34 Bug with ordering aggregates?