Re: choiche of function language was: Re: dynamic procedure call

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: choiche of function language was: Re: dynamic procedure call
Дата
Msg-id 951B9F0D-B9BF-4B48-868C-BFB93CC6DAB3@blighty.com
обсуждение исходный текст
Ответ на choiche of function language was: Re: dynamic procedure call  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список 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 по дате отправления:

Предыдущее
От: "Josh Tolley"
Дата:
Сообщение: Problem returning strings with pgsql 8.3.x
Следующее
От: Tom Lane
Дата:
Сообщение: Re: choiche of function language was: Re: dynamic procedure call