Re: Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans?
Дата
Msg-id 28874.1219242200@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Volatile functions in subqueries don't prevent subqueries from being evaluated in initplans?  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> Hm, shouldn't this query notice that random() is volatile and not make the
> subquery an initplan?

We've never done that in the past; in fact I recall seeing people using
subselects deliberately to hide volatility.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Patch: plan invalidation vs stored procedures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: make dist does not work in VPATH