From: ddebernardy@yahoo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8226: Inconsistent unnesting of arrays
Date: Wed, 12 Jun 2013 08:58:48 +0000
Message-ID: <E1UmgtE-0002si-0x@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8226
Logged by: Denis de Bernardy
Email address: ddebernardy@yahoo.com
PostgreSQL version: 9.2.4
Operating system: OSX
Description:
It looks like unnest() in a select statement doesn't behave consistently
based on the number of elements in the array.
This works as expected:
denis=# select 1 as a, unnest('{2,3}'::int[]) as b, unnest('{4,5,6}'::int[])
as c order by a, b, c;
a | b | c
---+---+---
1 | 2 | 4
1 | 2 | 5
1 | 2 | 6
1 | 3 | 4
1 | 3 | 5
1 | 3 | 6
(6 rows)
This doesn't (it's missing (1,3,4) and (1,2,5)):
denis=# select 1 as a, unnest('{2,3}'::int[]) as b, unnest('{4,5}'::int[])
as c order by a, b, c;
a | b | c
---+---+---
1 | 2 | 4
1 | 3 | 5
(2 rows)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: ddebernardy@yahoo.com
Subject: Re: BUG #8226: Inconsistent unnesting of arrays
In-Reply-To: <E1UmgtE-0002si-0x@wrigleys.postgresql.org>
References: <E1UmgtE-0002si-0x@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