Index + mismatching datatypes [WAS: index on custom function; explain]

Enrico Weigelt <weigelt@metux.de>

From: Enrico Weigelt <weigelt@metux.de>
To: pgsql-performance@postgresql.org
Date: 2005-11-07T18:07:38Z
Lists: 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/
---------------------------------------------------------------------