Re: speed of server side languages

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: darkcity(at)houston(dot)rr(dot)com (Val Ventura)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: speed of server side languages
Date: 2002-10-04 15:04:35
Message-ID: 20884.1033743875@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

darkcity(at)houston(dot)rr(dot)com (Val Ventura) writes:
> 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.

For stuff that involves database accesses, plpgsql will almost always
win, because it's the only one we have that caches query plans.

If you are doing simple calculations, text-mashing, etc, then you might
be best off with plperl or pltcl (choose according to taste). SQL and
plpgsql are overkill for simple arithmetic and don't have very extensive
text-manipulation capabilities.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-10-04 15:12:28 Re: Postgres for Windows
Previous Message shey sewani 2002-10-04 15:03:42 DTOI4 integer out of range