Re: Passing parameters to a Trigger
От | Antonio Scotti |
---|---|
Тема | Re: Passing parameters to a Trigger |
Дата | |
Msg-id | 3E364F93.9070603@mbigroup.it обсуждение исходный текст |
Ответ на | Passing parameters to a Trigger (Antonio Scotti <ascotti@mbigroup.it>) |
Ответы |
Re: Passing parameters to a Trigger
|
Список | pgsql-novice |
Triggers do accept parameters. In fact when you type CREATE TRIGGER you can also specify some arguments. They are accessible via trigdata not by the standard args of a function (in fact a trigger function must not have parameters). The manual makes an example of passing the current_user to a trigger, but it is not clear to me. Can anyone explain how to make it works? Antonio Scotti Josh Berkus ha scritto: >Antonio, > > > >>I need to pass to a trigger two dynamic text parameters stored into a >>table (I can obtain them via a simple select). How can I obtain such a >>thing? >> >> > >You can't. Triggers do not accept parameters. > >If the parameters you're talking about are table columns, you can access them >through the NEW and OLD record objects. > > >
В списке pgsql-novice по дате отправления: