Index + mismatching datatypes [WAS: index on custom function; explain] - Mailing list pgsql-performance

From Enrico Weigelt
Subject Index + mismatching datatypes [WAS: index on custom function; explain]
Date
Msg-id 20051107180738.GC15990@nibiru.local
Whole thread Raw
In response to Re: index on custom function; explain  (Yann Michel <yann-postgresql@spline.de>)
Responses Re: Index + mismatching datatypes [WAS: index on custom
List pgsql-performance
* Yann Michel <yann-postgresql@spline.de> wrote:

> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

I've got a similar problem: I have to match different datatypes,
ie. bigint vs. integer vs. oid.

Of course I tried to use casted index (aka ON (foo::oid)), but
it didn't work.

What am I doing wrong ?


cu
--
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service
  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@metux.de
---------------------------------------------------------------------
  Realtime Forex/Stock Exchange trading powered by postgreSQL :))
                                            http://www.fxignal.net/
---------------------------------------------------------------------

pgsql-performance by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: Performance PG 8.0 on dual opteron / 4GB / 3ware
Next
From: Neil Conway
Date:
Subject: Re: Index + mismatching datatypes [WAS: index on custom