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

From: Enrico Weigelt <weigelt(at)metux(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Subject: Index + mismatching datatypes [WAS: index on custom function; explain]
Date: 2005-11-07 18:07:38
Message-ID: 20051107180738.GC15990@nibiru.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

* Yann Michel <yann-postgresql(at)spline(dot)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(at)metux(dot)de
---------------------------------------------------------------------
Realtime Forex/Stock Exchange trading powered by postgreSQL :))
http://www.fxignal.net/
---------------------------------------------------------------------

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Neil Conway 2005-11-07 20:45:57 Re: Index + mismatching datatypes [WAS: index on custom
Previous Message Andreas Pflug 2005-11-07 17:45:31 Re: Performance PG 8.0 on dual opteron / 4GB / 3ware