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: dynamic pro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 15498 of 17437
Post > Topic >>

Re: dynamic procedure call

by pavel.stehule@[EMAIL PROTECTED] ("Pavel Stehule") May 10, 2008 at 07:35 AM

2008/5/9 tekwiz <ryoung@[EMAIL PROTECTED]
>:
> How do I code PL/pgSQL to select a procedure name from a table and
> then execute it from within another procedure and pass that procedure
> a particular ROWTYPE and return a ROWTYPE?

you can use EXECUTE statement. But you have to be careful when these
functions will returns different types. Then you have to have in 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.

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

-- 
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:29:21 CST 2008.