BUG #8226: Inconsistent unnesting of arrays

Поиск
Список
Период
Сортировка
От ddebernardy@yahoo.com
Тема BUG #8226: Inconsistent unnesting of arrays
Дата
Msg-id E1UmgtE-0002si-0x@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #8226: Inconsistent unnesting of arrays  (Greg Stark <stark@mit.edu>)
Re: BUG #8226: Inconsistent unnesting of arrays  (Greg Stark <stark@mit.edu>)
Список pgsql-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=3D# 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=3D# 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)

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: BUG #8225: logging options don't change after reload
Следующее
От: Greg Stark
Дата:
Сообщение: Re: BUG #8226: Inconsistent unnesting of arrays