pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enrico Weigelt <weigelt@metux.de>
To: pgsql-performance@postgresql.org
Subject: Index + mismatching datatypes [WAS: index on custom function; explain]
Date: Mon, 7 Nov 2005 19:07:38 +0100
Message-ID: <20051107180738.GC15990@nibiru.local> (raw)
In-Reply-To: <20051006081919.GA17081@zoom.spline.inf.fu-berlin.de>
References: <1128352451.312090.37640@g44g2000cwa.googlegroups.com>
	<20051006081919.GA17081@zoom.spline.inf.fu-berlin.de>

* 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/
---------------------------------------------------------------------



view thread (2+ messages)  latest in thread

Message-ID: <20051107180738.GC15990@nibiru.local>
Permalink:  ../20051107180738.GC15990@nibiru.local/
Also on:    postgresql.org/message-id/20051107180738.GC15990@nibiru.local

 · 

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: weigelt@metux.de
  Subject: Re: Index + mismatching datatypes [WAS: index on custom function; explain]
  In-Reply-To: <20051107180738.GC15990@nibiru.local>

* 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