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

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Дата
Msg-id 20100601125453.GU21875@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Matthew Wakeling <matthew@flymine.org>)
Ответы Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Matthew Wakeling <matthew@flymine.org>)
Список pgsql-performance
* Matthew Wakeling (matthew@flymine.org) wrote:
> The major case I found when writing pl/pgsql was when trying to build
> arrays row by row. AFAIK when I tried it, adding a row to an array caused
> the whole array to be copied, which put a bit of a damper on performance.

Using the built-ins now available in 8.4 (array_agg), that copying
doesn't happen any more.

    Thanks,

        Stephen

Вложения

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

Предыдущее
От: Matthew Wakeling
Дата:
Сообщение: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Следующее
От: Matthew Wakeling
Дата:
Сообщение: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL