index on different types - Mailing list pgsql-performance

From Enrico Weigelt
Subject index on different types
Date
Msg-id 20050429023512.GB26200@nibiru.borg.metux.de
Whole thread Raw
Responses Re: index on different types  (Michael Fuhr <mike@fuhr.org>)
List pgsql-performance
Hi folks,


there's often some talk about indices cannot be used if datatypes
dont match.

On a larger (and long time growed) application I tend to use OID
for references on new tables while old stuff is using integer.
Is the planner smart enough to see both as compatible datatype
or is manual casting required ?


thx
--
---------------------------------------------------------------------
 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 postgresSQL :))
                                            http://www.fxignal.net/
---------------------------------------------------------------------

pgsql-performance by date:

Previous
From: Marko Ristola
Date:
Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested?
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested?