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

From Matthew Wakeling
Subject Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Date
Msg-id alpine.DEB.2.00.1006011359030.4083@aragorn.flymine.org
Whole thread Raw
In response to Re: PostgreSQL Function Language Performance: C vs PL/PGSQL  (Stephen Frost <sfrost@snowman.net>)
Responses Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
List pgsql-performance
On Tue, 1 Jun 2010, Stephen Frost wrote:
> * 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. I had wondered if that had been improved.

Matthew

--
 Our riverbanks and seashores have a beauty all can share, provided
 there's at least one boot, three treadless tyres, a half-eaten pork
 pie, some oil drums, an old felt hat, a lorry-load of tar blocks,
 and a broken bedstead there.                   -- Flanders and Swann

pgsql-performance by date:

Previous
From: Stephen Frost
Date:
Subject: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Next
From: Brad Nicholson
Date:
Subject: Re: Zeus IOPS