Re: is there a way to deliver an array over column from a query window?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rafał Pietrak <rafal(at)ztk-rp(dot)eu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: is there a way to deliver an array over column from a query window?
Date: 2013-04-26 15:25:41
Message-ID: 12182.1366989941@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-2?Q?Rafa=B3_Pietrak?= <rafal(at)ztk-rp(dot)eu> writes:
> array_agg(distinct v order by v) -- works in postgres, but actually I need:
> array_agg(distinct v order by v,x) -- which doesn't. (ERROR:
> ....expressions must appear in argument list),

Why do you think you need that? AFAICS, the extra order-by column could
not in any way affect the result of the operation.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message salah jubeh 2013-04-26 16:08:11 Re: Table containing only valid table names
Previous Message Richard Huxton 2013-04-26 15:23:45 Re: apt.postgresql.org broken dependency?