Re: Rules and Triggers

From: "Michael Paesold" <mpaesold(at)gmx(dot)at>
To: "Adam Erickson" <adamre(at)cox(dot)net>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Rules and Triggers
Date: 2002-09-10 19:45:16
Message-ID: 007c01c25902$9772b940$4201a8c0@beeblebrox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kevin Brannen 2002-09-10 19:51:54 Re: Changing Column Type
Previous Message Adam Erickson 2002-09-10 19:24:09 Re: Rules and Triggers