Re: Create functions using a function

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Create functions using a function
Дата
Msg-id hmt1q0$9u8$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Create functions using a function  (Gianvito Pio <pio.gianvito@gmail.com>)
Список pgsql-sql
On 2010-03-01, Gianvito Pio <pio.gianvito@gmail.com> wrote:
> --001485f44fc07594a40480c43c01
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
> is there a way to define functions and/or triggers in a function?

assuming plpgsql: execute

> 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 text) RETURNS VOID AS $$BEGIN
  EXECUTE 'CREATE FUNCTION '||quote_ident(name)||   ...      END $$ LANGUAGE PLPGSQL;



В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Does IMMUTABLE property propagate?
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Does IMMUTABLE property propagate?