Invocation recognition. - Mailing list pgsql-general

From Marek PUBLICEWICZ
Subject Invocation recognition.
Date
Msg-id Pine.SOL.4.30.0107141632370.5392-100000@elektron.elka.pw.edu.pl
Whole thread Raw
List pgsql-general
Hello,

    I wonder if it would be possible inside a trigger fired
BEFORE UPDATE to detect, whether the action (UPDATE), which
activated the trigger was invoked from inside another trigger.
Is it possible to distinguish invocation from the other trigger from
the direct invocation made by the user 'by hand'? I need it in order to
determine in the BEFORE UPDATE trigger, whether to allow to perform the
update.
   The triggers are written in C, if this matters.

any help appreciated ;)
                    mark



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Nusphere/MySQL-AB arguing
Next
From: Thomas Lockhart
Date:
Subject: Re: Nusphere/MySQL-AB arguing