pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Matthew Wakeling <matthew@flymine.org>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: Eliot Gable <egable+pgsql-performance@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
Date: Tue, 1 Jun 2010 08:54:53 -0400
Message-ID: <20100601125453.GU21875@tamriel.snowman.net> (raw)
In-Reply-To: <alpine.DEB.2.00.1006011345220.4083@aragorn.flymine.org>
References: <AANLkTinPXHz0GMP6J6eWksip54AiCImJVNO4Yf4vzFm4@mail.gmail.com>
	<20100526161839.GA21875@tamriel.snowman.net>
	<AANLkTilqE1ODTmCtAqY6oUDnSYruapc6UdO0_ROf1-li@mail.gmail.com>
	<20100526163251.GB21875@tamriel.snowman.net>
	<AANLkTinskJ9en0Mstxp96ZNYywRkucuM0Hn74IN1Lh_H@mail.gmail.com>
	<AANLkTimClqP0JhBtIOHOcZLBn0O7sK-dEPk7Az8QmLMx@mail.gmail.com>
	<alpine.DEB.2.00.1006011345220.4083@aragorn.flymine.org>

* 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

Attachments:

  signature.asc (application/pgp-signature, 196B) download

view thread (12+ messages)  latest in thread

Message-ID: <20100601125453.GU21875@tamriel.snowman.net>
Permalink:  ../20100601125453.GU21875@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20100601125453.GU21875@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sfrost@snowman.net, matthew@flymine.org, mmoncure@gmail.com, egable+pgsql-performance@gmail.com
  Subject: Re: PostgreSQL Function Language Performance: C vs PL/PGSQL
  In-Reply-To: <20100601125453.GU21875@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox