Hi all,<br />is there a way to define functions and/or triggers in a function?<br /><br />For example, can I create a
functionthat takes an argument and defines a function that has the name passed as argument to the first function?<br
/><br/>Something like this .....<br /><br />CREATE FUNCTION test (name varchar) RETURNS VOID AS $$<br />BEGIN<br
/> CREATE FUNCTION name ( ) (here "name" should be expanded to the variable content) RETURNS .... <br />
...<br/> <br />END<br />$$<br /><br />Is there a way to do this? Thanks<br /><br />