Re: PostgreSQL Function Language Performance: C vs PL/PGSQL - Mailing list pgsql-performance

From Stephen Frost
Subject Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Date
Msg-id 20100601125453.GU21875@tamriel.snowman.net
Whole thread Raw
In response to Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Matthew Wakeling <matthew@flymine.org>)
Responses Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Matthew Wakeling <matthew@flymine.org>)
List 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

Attachment

pgsql-performance by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Next
From: Matthew Wakeling
Date:
Subject: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL