Re: BUG #8226: Inconsistent unnesting of arrays

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: BUG #8226: Inconsistent unnesting of arrays
Дата
Msg-id 20130612110350.GB20851@depesz.com
обсуждение исходный текст
Ответ на Re: BUG #8226: Inconsistent unnesting of arrays  (Denis de Bernardy <ddebernardy@yahoo.com>)
Список pgsql-bugs
On Wed, Jun 12, 2013 at 12:19:51PM +0200, Denis de Bernardy wrote:
> … where groups is a crazy column containing an array that needed to be
> joined with another table. In this case, you cannot do your suggested
> solution, which would look like this:

Missed this one.

You don't need to unpack to join.

you can do:

select * from tablea join tableb on tableb.id = any (tablea.array_column);

depesz

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: BUG #8226: Inconsistent unnesting of arrays
Следующее
От: greg@antrez.pl
Дата:
Сообщение: BUG #8227: referential integrity problem