What Is The Firing Order? - Mailing list pgsql-general

From
Subject What Is The Firing Order?
Date
Msg-id 200109070824.098a@lh00.opsion.fr
Whole thread Raw
Responses Re: What Is The Firing Order?
List pgsql-general
Greetings!

The document says: "Also, if more than one trigger is
defined for the same event on the same relation, the
order of trigger firing is unpredictable. This may be
changed in the future."

My another question is: When both UPDATE trigger (and
its trigger function) and UPDATE CASCADE constraint
are both defined, is the custom UPDATE trigger or the
UPDATE CASCADE constraint fired first?

I wish the constraint will be fired first. Otherwise,
I should not define the constraint (which saves a lot
of work) and code the complex UPDATE CASCADE actions
in the trigger to replace the powerful constraint
functionality during table creation, in order to see
data changed in the expected order. Am I correct?

Thanks!

CN

--------------------------------------------------------
You too can have your own email address from Eurosport.
http://www.eurosport.com






pgsql-general by date:

Previous
From: jd@commandprompt.com (Joshua Drake)
Date:
Subject: Re: PHP performance problems with postgres
Next
From: Andrew Gould
Date:
Subject: Re: Great Bridge ceases operations