Re: ERROR: JOIN/USING types 'integer' and 'character - Mailing list pgsql-general

From Tom Lane
Subject Re: ERROR: JOIN/USING types 'integer' and 'character
Date
Msg-id 19629.1071240708@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: JOIN/USING types 'integer' and 'character  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-general
Oliver Elphick <olly@lfix.co.uk> writes:
> I think the error means that you are joining on columns of differing
> types.  (E.g.: SELECT * FROM a JOIN b ON a.id = b.id, where a.id and
> b.id are of different types.)

More specifically, SELECT ... FROM a JOIN b USING (foo), where a.foo
and b.foo are of incompatible types.  The result of the JOIN is supposed
to have just one merged column "foo", but Postgres can't figure out what
type to make that column.

            regards, tom lane

pgsql-general by date:

Previous
From: Josué Maldonado
Date:
Subject: Uninstall postgres 7.4
Next
From: Chris Travers
Date:
Subject: Re: [NOVICE] PostgreSQL Training