Re: choiche of function language was: Re: dynamic procedure call - Mailing list pgsql-general

From Steve Atkins
Subject Re: choiche of function language was: Re: dynamic procedure call
Date
Msg-id 951B9F0D-B9BF-4B48-868C-BFB93CC6DAB3@blighty.com
Whole thread Raw
In response to choiche of function language was: Re: dynamic procedure call  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-general
On May 10, 2008, at 12:14 AM, Ivan Sergio Borgonovo wrote:

> On Sat, 10 May 2008 07:35:36 +0200
> "Pavel Stehule" <pavel.stehule@gmail.com> wrote:
>
>> your application different execution paths. Generally I can say, so
>> plpgsql isn't well language for this games, and better is using
>> plperl, plpython or other external language.
>
> It is clear what is at least one of the advantage of plpython or
> plperl over plpgsql, but then what are the advantages of plpgsql over
> the rest of the crowd other than resembling the language used in
> Oracle?

A much better impedance match to the database. It's designed for
doing database-ish things. The biggest advantage there is that
your datatypes are the database datatypes and your expression
parser is the sql expression parser. That makes using things like
timestamp or interval or custom database types simpler and cleaner
from pl/pgsql than from, say, pl/perl/

Cheers,
   Steve


pgsql-general by date:

Previous
From: "Josh Tolley"
Date:
Subject: Problem returning strings with pgsql 8.3.x
Next
From: Tom Lane
Date:
Subject: Re: choiche of function language was: Re: dynamic procedure call