Re: speed of server side languages - Mailing list pgsql-general

From Bruce Momjian
Subject Re: speed of server side languages
Date
Msg-id 200210041552.g94FqNM07413@candle.pha.pa.us
Whole thread Raw
In response to speed of server side languages  (darkcity@houston.rr.com (Val Ventura))
List pgsql-general
Val Ventura wrote:
> I am new to PostgreSQL and I'm looking to port a MSSQL database. I am
> currently working on the stored procedures, and I'm trying to
> understand when and why I should choose SQL vs. PL/pgSQL vs. all the
> others, as far as performance goes.
>
> Is there a document that addresses when to use what, if compatibility
> is not an issue? I would probably be rewriting the gist of the stored
> procedures, instead of trying to port them line by line, so I don't
> care how different it is from T/SQL.
>
> My searches turned up nothing yet... I've seen the question asked a
> few times, but google ate the replies (if any).

PL/pgSQL is probably the fastest because it gets compiled on first
execution.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: SERIAL with TTable in cbuilder
Next
From: Patrick Welche
Date:
Subject: Re: pg_restore authentication failure