Re: Bad plan when join on function

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Bad plan when join on function
Дата
Msg-id AANLkTim33Of+Xy+wRMBGx=HZOi_8VFqLXrXyE+5qrJqv@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bad plan when join on function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
2011/1/17 Tom Lane <tgl@sss.pgh.pa.us>:
> Pavel Stehule <pavel.stehule@gmail.com> writes:
>> it should to work without functional index - but not sure about effectivity
>
> As long as the function is VOLATILE, the planner can't use any
> intelligent query plan.  Merge or hash join both require at least
> stable join keys.

sure, my first advice was a question about function volatility - and
my sentence was related to using immutable function.

regards

Pavel Stehule

>
>                        regards, tom lane
>

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bad plan when join on function
Следующее
От: Mladen Gogala
Дата:
Сообщение: Re: Possible to improve query plan?