Re: Which is faster SQL or PL/PGSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Which is faster SQL or PL/PGSQL
Дата
Msg-id 13678.1066679400@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Which is faster SQL or PL/PGSQL  (Joe Conway <mail@joeconway.com>)
Ответы Re: Which is faster SQL or PL/PGSQL  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
Joe Conway <mail@joeconway.com> writes:
> Josh Berkus wrote:
>> While we're on the topic, anyone know any good ways to speed up EXECUTE 
>> statements in PL/pgSQL functions?

> Never tried it, but is it possible to use a prepared statement inside a 
> PL/pgSQL function?

You could probably EXECUTE prepare and execute statements, but I don't
see the point --- this would just be an extremely tedious way of
duplicating plpgsql's normal query-plan-caching behavior.

AFAICS, the whole point of EXECUTE in plpgsql is that it doesn't take
any shortcuts, and so the answer to Josh's question can only be "don't
use EXECUTE"...
        regards, tom lane


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

Предыдущее
От: weigelt@metux.de
Дата:
Сообщение: Re: [postgres] Deutsche PostgreSQL-Mailingliste unter postgresql.org
Следующее
От: Ewald Geschwinde
Дата:
Сообщение: Re: [postgres] Deutsche PostgreSQL-Mailingliste unter postgresql.org