Re: Functions and triggers can anyone help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Functions and triggers can anyone help
Дата
Msg-id 26102.1044458762@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Functions and triggers can anyone help  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> But how are you trying to set the trigger. You included the function
> definition, which I presume is created ok but haven't looked at, where as
> you've not included the command that is failing.

The given function is fine as a function, but is not directly usable
as a trigger.  Trigger functions take no explicit arguments --- they
receive the current row as an implicit argument.  See the examples
in the manual...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Temporary and permanent tables with same name
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Functions and triggers can anyone help