Create functions using a function - Mailing list pgsql-sql

From Gianvito Pio
Subject Create functions using a function
Date
Msg-id 5eca56861003011350pdc14fa5l2498c260bf68a90c@mail.gmail.com
Whole thread Raw
Responses Re: Create functions using a function  (Petru Ghita <petrutz@venaver.info>)
List pgsql-sql
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 /> 

pgsql-sql by date:

Previous
From: Aron
Date:
Subject: Re: Using new.id in the WHERE condition of one UPDATE inside ON INSERT rule
Next
From: Petru Ghita
Date:
Subject: Re: Create functions using a function