Re: 7.4 in-lining of SQL functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.4 in-lining of SQL functions
Дата
Msg-id 5116.1097816535@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 7.4 in-lining of SQL functions  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> "Simple SQL functions can now be inlined by including their SQL in the
> main query. This improves performance by eliminating per-call overhead.
> That means simple SQL functions now behave like macros."

> has me a bit worried. What does "simple" mean?

Not anything involving UNION :-(

The basic intent of the current inlining facility is to support inlining
of functions that return scalar results.  I think that it punts entirely
for functions that return SETOF anything; it certainly shouldn't be
expected to do amazing feats of query optimization for them...

You would probably have better results using views, if you can express
your problems using views.  Those do get "inlined" pretty well.

            regards, tom lane

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

Предыдущее
От: jdolecek@NetBSD.org (Jaromir Dolecek)
Дата:
Сообщение: Re: 'NOW' in UTC with no timezone
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Has anyone tried Date/Darwen/Lorentzos's model for temporal data?