Re: is any reason why only one columns subselect are allowed in array()? - Mailing list pgsql-hackers

From Sam Mason
Subject Re: is any reason why only one columns subselect are allowed in array()?
Date
Msg-id 20081118171331.GQ2459@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: is any reason why only one columns subselect are allowed in array()?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: is any reason why only one columns subselect are allowed in array()?
List 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


pgsql-hackers by date:

Previous
From: Sam Mason
Date:
Subject: Re: is any reason why only one columns subselect are allowed in array()?
Next
From: Simon Riggs
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1197)