Re: Which is faster SQL or PL/PGSQL

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Which is faster SQL or PL/PGSQL
Дата
Msg-id 200310201124.02090.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Which is faster SQL or PL/PGSQL  (Joe Conway <mail@joeconway.com>)
Ответы Re: Which is faster SQL or PL/PGSQL  (Joe Conway <mail@joeconway.com>)
Список pgsql-sql
Joe,

> Yes, I believe so (well, actually the optimizer). An inlined SQL
> function ends up behaving like a macro that expands at run time and is
> therefore quite fast -- no function call overhead at all.

... but only in 7.4.   In 7.2 and I think in 7.3 this was not implemented.

While we're on the topic, anyone know any good ways to speed up EXECUTE
statements in PL/pgSQL functions?

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Which is faster SQL or PL/PGSQL
Следующее
От: Adam Witney
Дата:
Сообщение: Crosstab question