Re: Rules and Triggers

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Re: Rules and Triggers
Дата
Msg-id 007c01c25902$9772b940$4201a8c0@beeblebrox
обсуждение исходный текст
Ответ на Re: Rules and Triggers  ("Adam Erickson" <adamre@cox.net>)
Ответы Re: Rules and Triggers
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Adam Erickson"
Дата:
Сообщение: Re: Rules and Triggers
Следующее
От: Kevin Brannen
Дата:
Сообщение: Re: Changing Column Type