pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurent Martelli <laurent@aopsys.com>
To: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Join on incompatible types
Date: Wed, 19 Nov 2003 13:16:03 +0100
Message-ID: <87ptfok0zg.fsf@news.nerim.net> (raw)
In-Reply-To: <3FBB43AB.30302@myrealbox.com>
References: <Pine.LNX.4.33.0310291446430.22074-100000@css120.ihs.com>
	<87k75ym1v7.fsf@news.nerim.net>
	<3FB9F855.7010905@myrealbox.com>
	<87oev9lsgs.fsf@news.nerim.net>
	<3FBB138C.4090303@myrealbox.com>
	<87u150k7mc.fsf@news.nerim.net>
	<3FBB43AB.30302@myrealbox.com>

>>>>> "Shridhar" == Shridhar Daithankar <shridhar_daithankar@myrealbox.com> writes:

[...]

  Shridhar> 2. Try following query EXPLAIN ANALYZE SELECT * from lists
  Shridhar> join classes on classes.id=lists.value where
  Shridhar> lists.id='16'::integer;

  Shridhar> classes.id=lists.value::integer.

With classes.id of type integer and lists.value of type varchar, I get
"ERROR:  Cannot cast type character varying to integer", which is not
such a surprise. 

Thanks for your help anyway.


-- 
Laurent Martelli
laurent@aopsys.com                                Java Aspect Components
http://www.aopsys.com/                             http://jac.aopsys.com




view thread (8+ messages)  latest in thread

Message-ID: <87ptfok0zg.fsf@news.nerim.net>
Permalink:  ../87ptfok0zg.fsf@news.nerim.net/
Also on:    postgresql.org/message-id/87ptfok0zg.fsf@news.nerim.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: laurent@aopsys.com, shridhar_daithankar@myrealbox.com
  Subject: Re: Join on incompatible types
  In-Reply-To: <87ptfok0zg.fsf@news.nerim.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox