Re: dynamic procedure call

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: tekwiz <ryoung(at)medicalpharmacies(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dynamic procedure call
Date: 2008-05-10 05:35:36
Message-ID: 162867790805092235m31ec713es66c1a827961ff1a4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2008/5/9 tekwiz <ryoung(at)medicalpharmacies(dot)com>:
> 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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2008-05-10 05:41:20 Returning RECORD from PGSQL without custom type?
Previous Message Tom Lane 2008-05-09 23:49:58 Re: Hung SQL Update Linux Redhat 4U5 Postgres 8.3.1