Re: [HACKERS] CTE inlining

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] CTE inlining
Дата
Msg-id 20170430052816.n2j52g4za37emp2f@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [HACKERS] CTE inlining  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2017-04-30 00:28:46 -0400, Tom Lane wrote:
> There's already a pretty large hill to climb here in the way of
> breaking peoples' expectations about CTEs being optimization
> fences.  Breaking the documented semantics about CTEs being
> single-evaluation seems to me to be an absolute non-starter.

If all referenced functions are non-volatile, I don't quite see the
problem?  Personally I believe we'll have to offer a proper
anti-inlining workaround anyway, and in that case there's really nothing
that should stop us from inlining CTE without volatile functions twice?

- Andres



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [HACKERS] CTE inlining
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] CTE inlining