Re: Handling of mutable functions in subqueries?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Handling of mutable functions in subqueries?
Дата
Msg-id 13675.1096657752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Handling of mutable functions in subqueries?  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Shouldn't Postgres be noticing the non-immutable random() function and not
> making the subquery an InitPlan? 

Perhaps.  In the dim past, using a dummy subquery was the only way to
persuade the planner not to re-evaluate functions that you didn't want
evaluated more than once, so changing this could be expected to break
some existing applications.  Barring some non-invented cases where it
causes problems, I'm inclined to leave it alone.
        regards, tom lane


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

Предыдущее
От: Darcy Buskermolen
Дата:
Сообщение: Re: AIX and V8 beta 3
Следующее
От: Gaetano Mendola
Дата:
Сообщение: ERROR: left link changed unexpectedly