Thread: Which procedural language to use for functions.

Which procedural language to use for functions.

From
"Saltsgaver, Scott"
Date:
Which procedural language is best for writing PostgreSQL functions:
'PL/pgSQL', 'PL/perl', or 'PL/Tcl'?  

I know that I can't do table creates in 'PL/pgSQL'?  

Is there an obvious choice as far speed and size?

Thanks,
Scott Saltsgaver
scottsa@aiinet.com


Re: Which procedural language to use for functions.

From
JanWieck@t-online.de (Jan Wieck)
Date:
Saltsgaver, Scott wrote:
> Which procedural language is best for writing PostgreSQL functions:
> 'PL/pgSQL', 'PL/perl', or 'PL/Tcl'?
>
> I know that I can't do table creates in 'PL/pgSQL'?
>
> Is there an obvious choice as far speed and size?
   PL/Tcl has the advantage that it can do the table creates you   want.  OTOH if your frontend app is written in Perl,
it'snot   that   likely   that   one  of  the  app  programmers  easily   understands a function.
 
   I have no benchmarking  information  between  the  procedural   languages.   If  that's really an issue, write your
functions  and triggers in C.
 


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #