Re: PostgreSQL Function Language Performance: C vs PL/PGSQL

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Дата
Msg-id 20100526164716.GC21875@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Eliot Gable <egable+pgsql-performance@gmail.com>)
Ответы Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Список pgsql-performance
* Eliot Gable (egable+pgsql-performance@gmail.com) wrote:
> Since PostgreSQL is written in C, I assume there is no
> such additional overhead. I assume that the PL/PGSQL implementation at its
> heart also uses SPI to perform those executions. Is that a fair statement?

Right, but I also wouldn't expect a huge improvment either, unless
you're calling these queries a ton, or the queries that you're calling
from the pl/pgsql are pretty short-lived.

Don't get me wrong, C is going to be faster, but it depends on exactly
what's going on as to if it's going to be an overall improvment of, say,
10%, or a 10-fold improvment. :)

    Thanks,

        Stephen

Вложения

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

Предыдущее
От: Eliot Gable
Дата:
Сообщение: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: performance of temporary vs. regular tables