Re: Which is faster SQL or PL/PGSQL

From: Michael Pohl <pgsql(at)newtopia(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Which is faster SQL or PL/PGSQL
Date: 2003-10-20 15:36:24
Message-ID: Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sun, 19 Oct 2003, Christopher Browne wrote:

> The world rejoiced as jinujosein(at)yahoo(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-10-20 16:49:06 Re: Unable to user pg_restore
Previous Message Dmitri Fuerle 2003-10-20 15:07:13 Re: Question regarding triggers