Rules and triggers

Поиск
Список
Период
Сортировка
От Mihai Gheorghiu
Тема Rules and triggers
Дата
Msg-id 025f01c14c50$5f5b5400$6e646464@New6.Travel
обсуждение исходный текст
Список pgsql-general
I have a table with check type constrains. On this table there are rules
that affect other tables.
What is the order in which TRIGGER BEFORE UPDATE, TRIGGER AFTER UPDATE and
RULE are run?
If the new record is rejected due to the check constraints, can I be sure
that the rule is not executed?
I need two rules: one that is executed for all records, and another one that
is executed only if one of the fields is set to a specific value. Can I be
sure that both rules are executed, if applicable?
If I need an UPDATE to a table to also INSERT records into two other tables,
do I need two rules, or can I do it with only one rule, and how?
Thank you all.


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

Предыдущее
От: "Seung-won Hwang"
Дата:
Сообщение: Fw: Questions on 'Copy from' and functional indicies
Следующее
От: "Seung-won Hwang"
Дата:
Сообщение: Flushing cache?