Re: index used when casting to different type?

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема Re: index used when casting to different type?
Дата
Msg-id 20010219205332.A2503@lerami.lerctr.org
обсуждение исходный текст
Ответ на index used when casting to different type?  (adb <adb@Beast.COM>)
Список pgsql-general
* adb <adb@Beast.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@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: index used when casting to different type?
Следующее
От: Joseph Shraibman
Дата:
Сообщение: Re: Weird indices