Re: Firing Orders
От | Tom Lane |
---|---|
Тема | Re: Firing Orders |
Дата | |
Msg-id | 14073.1038496496@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Firing Orders ("CN" <cnliou9@fastmail.fm>) |
Список | pgsql-general |
"CN" <cnliou9@fastmail.fm> writes: > Q1. Are BEFORE UPDATE and BEFORE DELETE (let's call them as "customed") > triggers always fired before RI_ConstraintTriggers on the same relation > regardless of the alphabetical name of these customed triggers? The RI_ triggers are AFTER triggers, so yes. > Q2. Are BEFORE UPDATE and BEFORE DELETE (customed) triggers on the > referenced relation fired before the RI_ConstraintTriggers on the > referencing relation regardless of the alphabetical name of these > customed triggers? Huh? They would not be fired at all, at least not as part of the same trigger event. > Q3. Are AFTER UPDATE and AFTER DELETE (customed) triggers fired after > RI_ConstraintTriggers on the same relation regardless of the alphabetical > name of these customed triggers? When it says "alphabetical order", it means exactly that. RI triggers aren't special. regards, tom lane
В списке pgsql-general по дате отправления: