From: Adam Erickson <adamre@cox.net>
To: Michael Paesold <mpaesold@gmx.at>
To: pgsql-sql@postgresql.org
Subject: Re: Rules and Triggers
Date: Tue, 10 Sep 2002 14:24:09 -0500
Message-ID: <ALEKKHACBIAEBNBPFKPCGEJNEKAA.adamre@cox.net> (raw)
In-Reply-To: <006401c258fb$47710520$4201a8c0@beeblebrox>
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. :)
> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Michael Paesold
> Sent: Tuesday, September 10, 2002 1:53 PM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] Rules and Triggers
>
>
> Hi all,
>
> can you tell me in what order rules and triggers are executed?
>
> First, what comes first, the rules, or the triggers?
> And then, in what order are all the rules / triggers executed?
>
> Regards,
> Michael Paesold
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
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: adamre@cox.net, mpaesold@gmx.at
Subject: Re: Rules and Triggers
In-Reply-To: <ALEKKHACBIAEBNBPFKPCGEJNEKAA.adamre@cox.net>
* 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