Re: Immutable function WAY slower than Stable function?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Immutable function WAY slower than Stable function?
Дата
Msg-id 27336.1533609731@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Immutable function WAY slower than Stable function?  (Ken Tanzer <ken.tanzer@gmail.com>)
Ответы Re: Immutable function WAY slower than Stable function?  (Ken Tanzer <ken.tanzer@gmail.com>)
Список pgsql-general
Ken Tanzer <ken.tanzer@gmail.com> writes:
> Hi Adrian.  Happy to provide this info.  Though on a side note, I don't
> understand why it should matter, if functions are black box optimization
> fences.

They aren't, at least not when they are SQL-language functions that
meet the conditions for inlining.  The reason that EXPLAIN VERBOSE
is helpful here is that you can see whether the function got inlined
or not: do you see a call to the function, or a representation of
its body?

            regards, tom lane


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Immutable function WAY slower than Stable function?
Следующее
От: Ken Tanzer
Дата:
Сообщение: Re: Immutable function WAY slower than Stable function?