Re: Trigger issue, bug? on 7.2.1 - Mailing list pgsql-general

From Tom Lane
Subject Re: Trigger issue, bug? on 7.2.1
Date
Msg-id 19094.1047998060@sss.pgh.pa.us
Whole thread Raw
In response to Trigger issue, bug? on 7.2.1  ("Miguel Carvalho" <miguel@ipatimup.pt>)
Responses Re: Trigger issue, bug? on 7.2.1  ("Miguel Carvalho" <miguel@ipatimup.pt>)
List pgsql-general
"Miguel Carvalho" <miguel@ipatimup.pt> writes:
> The trigger code will force another trigger fire because of the changes
> in the record. I'm i right?

No, altering the NEW record doesn't cause any additional trigger
firings.  If it did, such a trigger would be infinitely recursive.

Your DELETE issued by the trigger would cause firing of ON DELETE
triggers, but not another firing of ON UPDATE.

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Red Hat snubbed by Oracle
Next
From: Tom Lane
Date:
Subject: Re: insert aliases?