Re: Which is faster SQL or PL/PGSQL - Mailing list pgsql-sql

From Michael Pohl
Subject Re: Which is faster SQL or PL/PGSQL
Date
Msg-id Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com
Whole thread Raw
In response to Re: Which is faster SQL or PL/PGSQL  (Christopher Browne <cbbrowne@acm.org>)
Responses Re: Which is faster SQL or PL/PGSQL  (Richard Huxton <dev@archonet.com>)
List pgsql-sql
On Sun, 19 Oct 2003, Christopher Browne wrote:

> The world rejoiced as jinujosein@yahoo.com ("George A.J") wrote:
> > i am converting an MSSQL database to Postgres. there is a lot of
> > procedures to convert.
> >
> > which language is best for functions, SQL or plpgsql.
> >
> > which is faster . i am using postgres 7.3.2
> 
> Hmm?  This doesn't seem to make much more sense than the question of
> what colour a database should be ("Mauve has more RAM...").

Transact-SQL stored procedures pseudo-compile their execution plans the
first time they are run, which can result in faster subsequent executions.  
I'm guessing the poster was wondering if plpgsql functions offered similar
performance benefits vs. equivalent SQL.

michael



pgsql-sql by date:

Previous
From: Dmitri Fuerle
Date:
Subject: Re: Question regarding triggers
Next
From: Richard Huxton
Date:
Subject: Re: Which is faster SQL or PL/PGSQL