Re: planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade
Дата
Msg-id 6251.1163921281@sss.pgh.pa.us
обсуждение исходный текст
Ответ на planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade  (Chris Tennant <postgresql-ctennant@elirious.com>)
Ответы Re: planner used functional index in 7.3.6, now does a seq
Список pgsql-sql
Chris Tennant <postgresql-ctennant@elirious.com> writes:
> here's the definition of the function (as immutable):

> CREATE OR REPLACE FUNCTION stereo_id (INTEGER, INTEGER, INTEGER) RETURNS 
> INTEGER AS
>      'BEGIN  RETURN CASE WHEN $2 = $3 THEN $1 ELSE -1 END;    END;'
>    LANGUAGE 'plpgsql' IMMUTABLE;

> and here's the original definition of the functional index:

> CREATE INDEX stereo_pair_image_attributes_stereo_id
>     ON opt_stereo_pair_image_attributes
>         (stereo_id(right_patient_data_id,left_patient_data_id));

Um, that index seems to be on some other function that may have the same
name, but only takes two arguments?
        regards, tom lane


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

Предыдущее
От: Chris Tennant
Дата:
Сообщение: planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade
Следующее
От: Chris Tennant
Дата:
Сообщение: Re: planner used functional index in 7.3.6, now does a seq