Re: SQL function inlining

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQL function inlining
Дата
Msg-id 8304.1161308488@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SQL function inlining  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
"John D. Burger" <john@mitre.org> writes:
> I'm having trouble figuring out when (if) the planner inlines sql
> functions (I'm running 7.4).  I was assuming that pure sql functions
> are kind of like views with parameters, but I can't seem to see any
> cases where functions that select from a table get inlined.

That's 'cause there aren't any ... especially not in 7.4 ...
we inline simple scalar functions of the form "select scalar-expression"
but that's about it.

            regards, tom lane

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

Предыдущее
От: "John D. Burger"
Дата:
Сообщение: SQL function inlining
Следующее
От: "Karl O. Pinc"
Дата:
Сообщение: plpgsql FOUND bug when SELECT INTO assigns a NULL value?