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