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

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: is any reason why only one columns subselect are allowed in array()?
Дата
Msg-id 20081118171331.GQ2459@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на Re: is any reason why only one columns subselect are allowed in array()?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: is any reason why only one columns subselect are allowed in array()?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: is any reason why only one columns subselect are allowed in array()?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches (r1197)