Search Postgresql Archives

Re: PERFORM function in Plpgsql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Apr 29, 2004, at 9:22 AM, Yannick LOUVET wrote:


hello,

i want to call a function (function1() for example )in an other function.
simple,i guess :


....
PERFORM function1() ;

You will want to use EXECUTE instead (assuming var_function is a text variable):


EXECUTE var_function;

You may need to add parenthesis and a select:

EXECUTE 'select ' || var_function || '()';

.....

it's ok, but the name of my function is a variable like :


..... var_function := function1(); ..... PERFORM var_function;


and it doesn't work !!! Is it possible to do that ?

thanks


version :
PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to majordomo@postgresql.org so that your
     message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux