Re: index used when casting to different type?

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: adb <adb(at)Beast(dot)COM>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: index used when casting to different type?
Date: 2001-02-20 02:53:32
Message-ID: 20010219205332.A2503@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* adb <adb(at)Beast(dot)COM> [010219 20:43]:
> If I have a table with a key column stored as text and
> another table with a key column stored as an int4 and
> I join the two by casting the in4 column to text, will the existing
> index on the int4 key be used?
I doubt it.
>
> Thanks,
>
> Alex.
>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-02-20 02:55:28 Re: index used when casting to different type?
Previous Message adb 2001-02-20 02:51:43 Re: index used when casting to different type?