Re: BUG #10194: Stable function in select clause cann't be optimized to one call?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #10194: Stable function in select clause cann't be optimized to one call?
Дата
Msg-id 4618.1398973036@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #10194: Stable function in select clause cann't be optimized to one call?  (digoal@126.com)
Ответы Re: BUG #10194: Stable function in select clause cann't be optimized to one call?
Список pgsql-bugs
digoal@126.com writes:
> Why stable function in select clause cann't optimized to one time call?

Because its value might change between planning and execution.

There was some discussion awhile back of performing run-time caching of
the result, but it isn't done yet, and would impose some costs of its own.

BTW, this sort of question is not a bug.

            regards, tom lane

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

Предыдущее
От: Nick Rupley
Дата:
Сообщение: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
Следующее
От: 德哥
Дата:
Сообщение: Re: BUG #10194: Stable function in select clause cann't be optimized to one call?