Re: Procedural Languages - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Procedural Languages
Date
Msg-id CAHyXU0x0+O4dzEwRXt=EhXM264n8De_bgwPBpLt4HQTBadFaDw@mail.gmail.com
Whole thread Raw
In response to Procedural Languages  (John Townsend <jtownsend@advancedformulas.com>)
Responses Re: Procedural Languages
List pgsql-general
On Thu, May 31, 2012 at 9:36 AM, John Townsend
<jtownsend@advancedformulas.com> wrote:
> There are least 10 Procedural Languages available for PostGreSQL. The one
> that comes with the installation is PL/pgSQL.
>
> Which ones do you use and why?

pl/pgsql is unique in that it has 'first class queries' -- sql is
intermixed freely with procedural code and it uses the same type
system and error handling mechanisms  (although the syntax is
different).   this directly translates into direct, impactful coding
as long as you are not trying to do things that are awkward for the
language like heavy computation or string processing.

the other languages have various pros and cons but at the end are
typically going to be judged by your familiarity with the particular
language.  I have a special fondness for pl/sh for example.

merlin

pgsql-general by date:

Previous
From: "R, Abhilash (HP Software)"
Date:
Subject: PostgreSQL 9.0.4 crashing
Next
From: Leif Biberg Kristensen
Date:
Subject: Re: Procedural Languages