Re: Query becomes slow when written as view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query becomes slow when written as view
Дата
Msg-id 21225.1360855751@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query becomes slow when written as view  (Jan Strube <js@deriva.de>)
Ответы Re: Query becomes slow when written as view
Список pgsql-general
Jan Strube <js@deriva.de> writes:
>> is your function stable/immutable, and if so is it decorated as such.

> No, it´s volatile.

Well, that's your problem.  The planner won't push down the IN clause
past the volatile function for fear of changing the query's side-effects.

I'd question whether it's sane to have a view with volatile functions in
it at all.  It certainly won't act much like the normal understanding of
a view ...

            regards, tom lane

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