Skip site navigation (1) Skip section navigation (2)

Re: Polymorphic arguments and composite types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Polymorphic arguments and composite types
Date: 2007-10-05 14:52:50
Message-ID: 15763.1191595970@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Simon Riggs <simon(at)2ndquadrant(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-10-05 15:03:04
Subject: Re: default_text_search_config
Previous:From: Simon RiggsDate: 2007-10-05 12:27:54
Subject: Re: First steps with 8.3 and autovacuum launcher

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group