way to pass NEW into function

Поиск
Список
Период
Сортировка
От Mike Cianflone
Тема way to pass NEW into function
Дата
Msg-id B9F49C7F90DF6C4B82991BFA8E9D547B17D1B7@BUFORD.littlefeet-inc.com
обсуждение исходный текст
Ответы Re: way to pass NEW into function  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-hackers
    Is it possible to trick pg/sql to allow passing of the NEW record
into a function? I've got a trigger that gets kicked off before an insert
and I need to call another function and pass that record in, but doing a
perform activate_event(NEW); /* my function is activate_event(OPAQUE) */

only spits out "ERROR:  NEW used in non-rule query". Is there a way to trick
it into passing the NEW record into my function?

Thanks for any pointers,
Mike



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SOMAXCONN (was Re: Solaris source code)
Следующее
От: "John Moore"
Дата:
Сообщение: Re: Production Backup and Recovery