Re: Index on immutable function call

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Index on immutable function call
Дата
Msg-id 20100119102522.GJ29338@a-kretschmer.de
обсуждение исходный текст
Ответ на Index on immutable function call  ("Philippe Lang" <philippe.lang@attiksystem.ch>)
Список pgsql-general
In response to Philippe Lang :
>
> My goal is to make query...
>
>   select * from indexed_table WHERE data1 >
> this_is_a_long_transformation(data2);
>
> ... as fast as
>
>   select * from indexed_table WHERE data1 > data2;
>
> ... with the help of the index "long_transformation_index".
>

Around 50% of your data comply with your where-condition, i think, this
is the reason why the planner decides for a seq-scan.

Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Index on immutable function call
Следующее
От: "Philippe Lang"
Дата:
Сообщение: Re: Index on immutable function call