pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Pohl <pgsql@newtopia.com>
To: pgsql-sql@postgresql.org
Subject: Re: Which is faster SQL or PL/PGSQL
Date: Mon, 20 Oct 2003 11:36:24 -0400 (EDT)
Message-ID: <Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com> (raw)
In-Reply-To: <m3u164602x.fsf@wolfe.cbbrowne.com>

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




view thread (13+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com>
Permalink:  ../Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com

 · 

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-sql@postgresql.org
  Cc: pgsql@newtopia.com
  Subject: Re: Which is faster SQL or PL/PGSQL
  In-Reply-To: <Pine.LNX.4.44.0310201119240.10378-100000@server1.techplant.com>

* 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