Re: Subselects returning array and ANY... - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Subselects returning array and ANY...
Date
Msg-id 200802271645.22055.josh@agliodbs.com
Whole thread Raw
In response to Re: Subselects returning array and ANY...  ("Dawid Kuroczko" <qnex42@gmail.com>)
List pgsql-sql
Dawid,

> But you are right, though!  I just need to leave off the subselect! 
> Thanks! SELECT h.* FROM haystack h JOIN needles ON straw = ANY (straws);
>
> (not exactly what I was looking for, but it works ;))

Yeah, the problem with your first query is that it's returning a rowset of 
arrays, not a single array.  This means that ANY() doesn't know exactly 
what to do with it.

-- 
--Josh

Josh Berkus
PostgreSQL @ Sun
San Francisco


pgsql-sql by date:

Previous
From: "Dawid Kuroczko"
Date:
Subject: Re: Subselects returning array and ANY...
Next
From: Tom Lane
Date:
Subject: Re: operator class