Re: BUG #8226: Inconsistent unnesting of arrays

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Denis de Bernardy <ddebernardy(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8226: Inconsistent unnesting of arrays
Date: 2013-06-12 11:03:50
Message-ID: 20130612110350.GB20851@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message greg 2013-06-12 20:08:53 BUG #8227: referential integrity problem
Previous Message hubert depesz lubaczewski 2013-06-12 11:03:04 Re: BUG #8226: Inconsistent unnesting of arrays