From: maxim.boguk@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6326: SELECT ARRAY(SELECT ...) syntax and array[] results doesn't work
Date: Mon, 05 Dec 2011 02:35:36 +0000
Message-ID: <E1RXOP2-0002iJ-WB@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6326
Logged by: Maksym Boguk
Email address: maxim.boguk@gmail.com
PostgreSQL version: 9.1.1
Operating system: Linux
Description:
SELECT ARRAY(SELECT ...)
doesn't work when subselect return any array.
Test case:
db=# SELECT ARRAY(SELECT 1 UNION ALL SELECT 2);
?column?
----------
{1,2}
All good... now:
db=# SELECT ARRAY(SELECT array[1,2]::float[] UNION ALL SELECT
array[3,4]::float[]);
ERROR: could not find array type for data type double precision[]
db=# SELECT ARRAY(SELECT array[1,2]::integer[] UNION ALL SELECT
array[3,4]::integer[]);
ERROR: could not find array type for data type integer[]
Is that syntax supposed to work with anyarray types?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: maxim.boguk@gmail.com
Subject: Re: BUG #6326: SELECT ARRAY(SELECT ...) syntax and array[] results doesn't work
In-Reply-To: <E1RXOP2-0002iJ-WB@wrigleys.postgresql.org>
References: <E1RXOP2-0002iJ-WB@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox