Re: is any reason why only one columns subselect are allowed in array()?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: is any reason why only one columns subselect are allowed in array()?
Date: 2008-11-18 17:13:31
Message-ID: 20081118171331.GQ2459@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 18, 2008 at 05:19:12PM +0100, Pavel Stehule wrote:
> there are some not necessary limits, because we should some operations:
>
> postgres=# select array(select * from foo);
> ERROR: subquery must return only one column
> LINE 1: select array(select * from foo);

The current limitation that a sub-query can only return a single column
is very annoying and is one of the more common restrictions I bump into
when writing SQL.

Sam

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-11-18 17:15:01 Re: Updates of SE-PostgreSQL 8.4devel patches (r1197)
Previous Message Sam Mason 2008-11-18 17:09:56 Re: is any reason why only one columns subselect are allowed in array()?