Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: choiche of ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 8 Topic 15498 of 17437
Post > Topic >>

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

by tgl@[EMAIL PROTECTED] (Tom Lane) May 10, 2008 at 11:19 AM

Ivan Sergio Borgonovo <mail@[EMAIL PROTECTED]
> writes:
> 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?

Others made some other comments already, but I think the issue that
is specifically concerning you is the question of strong vs weak
typing.  plpgsql is designed as a strongly typed language, meaning
that the types of all objects are supposed to be predetermined and
not changing.  This makes it difficult if not impossible to write stuff
that can refer to run-time-selected columns.  But you get benefits in
terms of better error checking and improved performance --- a weakly
typed language could never cache any plans, not even for trivial
expressions.

We've poked a few loopholes in the strong typing over the years
--- the whole business of EXECUTE versus direct evaluation of a
query can be seen as allowing weak typing for EXECUTE'd queries.
But it's still the language's design center.

I think it'd be possible to build a weakly typed language that was
just as well integrated with SQL as plpgsql is, but it would likely
be markedly slower in use.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 8 Posts in Topic:
dynamic procedure call
tekwiz <ryoung@[EMAIL   2008-05-09 12:05:26 
Re: dynamic procedure call
pavel.stehule@[EMAIL PROT  2008-05-10 07:35:36 
choiche of function language was: Re: dynamic procedure
mail@[EMAIL PROTECTED] (  2008-05-10 09:14:14 
Re: choiche of function language was: Re: dynamic procedure call
steve@[EMAIL PROTECTED]   2008-05-10 07:27:01 
Re: choiche of function language was: Re: dynamic procedure call
tgl@[EMAIL PROTECTED] (T  2008-05-10 11:19:27 
Re: choiche of function language was: Re: dynamic procedure call
tgl@[EMAIL PROTECTED] (T  2008-05-10 11:50:06 
Re: choiche of function language was: Re: dynamic procedure call
Chris Browne <cbbrowne  2008-05-12 11:27:26 
Re: choiche of function language was: Re: dynamic procedure call
pavel.stehule@[EMAIL PROT  2008-05-10 12:08:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:09:38 CST 2008.