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
Ответ на
Список
Дерево обсуждения
Immutable function WAY slower than Stable function? Ken Tanzer <ken.tanzer@gmail.com>
Re: Immutable function WAY slower than Stable function? Adrian Klaver <adrian.klaver@aklaver.com>
Re: Immutable function WAY slower than Stable function? Ken Tanzer <ken.tanzer@gmail.com>
Re: Immutable function WAY slower than Stable function? Tom Lane <tgl@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? Tom Lane <tgl@sss.pgh.pa.us>
Re: Immutable function WAY slower than Stable function? Guyren Howe <guyren@gmail.com>
Re: Immutable function WAY slower than Stable function? Michal <michal-ok@o2.pl>
Re: Immutable function WAY slower than Stable function? Ken Tanzer <ken.tanzer@gmail.com>
Re: Immutable function WAY slower than Stable function? Tom Lane <tgl@sss.pgh.pa.us>
Re: Immutable function WAY slower than Stable function? Christophe Pettus <xof@thebuild.com>
Re: Immutable function WAY slower than Stable function? Adrian Klaver <adrian.klaver@aklaver.com>
Re: Immutable function WAY slower than Stable function? Tom Lane <tgl@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? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Immutable function WAY slower than Stable function? Ken Tanzer <ken.tanzer@gmail.com>
Re: Immutable function WAY slower than Stable function? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Immutable function WAY slower than Stable function? Ken Tanzer <ken.tanzer@gmail.com>
Re: Immutable function WAY slower than Stable function? Adrian Klaver <adrian.klaver@aklaver.com>
Ken Tanzer  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
Дата:
От: Ken Tanzer
Дата:
FAQ