From: Michael Paesold <mpaesold@gmx.at>
To: Adam Erickson <adamre@cox.net>
To: pgsql-sql@postgresql.org
Subject: Re: Rules and Triggers
Date: Tue, 10 Sep 2002 21:45:16 +0200
Message-ID: <007c01c25902$9772b940$4201a8c0@beeblebrox> (raw)
References: <ALEKKHACBIAEBNBPFKPCGEJNEKAA.adamre@cox.net>
Adam Erickson wrote:
> Correct me if I'm wrong, but rules constrain the SQL (ie. validation).
> Triggers are carried out after the SQL is executed and the data is
modified.
> So, to answer your question, I think rules come first. As to which order
> the rules / triggers are executed probably depends on the order you put
them
> in when you created them but I pulled that straight out of my arse. :)
That would be correct for triggers with AFTER INSERT/UPDATE/DELETE.
But what about triggers BEFORE INSERT/UPDATE/DELETE?
Regards,
Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mpaesold@gmx.at, adamre@cox.net
Subject: Re: Rules and Triggers
In-Reply-To: <007c01c25902$9772b940$4201a8c0@beeblebrox>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox