Re: Polymorphic arguments and composite types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Polymorphic arguments and composite types
Date
Msg-id 15763.1191595970@sss.pgh.pa.us
Whole thread Raw
In response to Polymorphic arguments and composite types  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Polymorphic arguments and composite types
List pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> ...which is fine on just one table, but I want to join...

> postgres=# select * from c where col1 = any (select col2 from c);
> ERROR:  operator does not exist: integer = integer[]

That isn't a join.  Are you looking for something like

select * from c, c as c2 where c.col1 = any (c2.col2)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: First steps with 8.3 and autovacuum launcher
Next
From: Tom Lane
Date:
Subject: Re: default_text_search_config