Re: Passing parameters to a Trigger - Mailing list pgsql-novice

From Antonio Scotti
Subject Re: Passing parameters to a Trigger
Date
Msg-id 3E36AD88.1030300@mbigroup.it
Whole thread Raw
In response to Passing parameters to a Trigger  (Antonio Scotti <ascotti@mbigroup.it>)
Responses Re: Passing parameters to a Trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Passing parameters to a Trigger
Next
From: Art Fore
Date:
Subject: Re: postgresql with SuSE 8.0