Re: Passing parameters to a Trigger

Поиск
Список
Период
Сортировка
От Antonio Scotti
Тема Re: Passing parameters to a Trigger
Дата
Msg-id 3E36AD88.1030300@mbigroup.it
обсуждение исходный текст
Ответ на Passing parameters to a Trigger  (Antonio Scotti <ascotti@mbigroup.it>)
Ответы Re: Passing parameters to a Trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
    The exact reference to what I've read is: in the .pdf file
"programmer-7.2-A4.pdf" at the very beginning of page 240. It is the
programmer's reference manual, the section regardings the CREATE TRIGGER
command in the paragraph explaing the meaning of 'args'.
    It says something about passing the current_user to a trigger but it
is not clear to me so I'd like to have it explained.
    However I've managed to solve my problem in another way. I simply
call the trigger with no parameters at all and then I do a query into
the trigger body (which is written in C) so I get the missing parameters.

    Regards,
        Antonio Scotti

Tom Lane ha scritto:

>Antonio Scotti <ascotti@mbigroup.it> writes:
>
>
>>The manual makes an example of passing the
>>current_user to a trigger, but it is not clear to me.
>>
>>
>
>Where exactly?  I couldn't find any such example in a quick search.
>
>In general, the arguments offered in CREATE TRIGGER can only be literal
>constants, so I don't think this could work.
>
>            regards, tom lane
>
>




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Passing parameters to a Trigger
Следующее
От: Art Fore
Дата:
Сообщение: Re: postgresql with SuSE 8.0