| От | Tom Lane |
|---|---|
| Тема | Re: Foreign Key Constraint Deletion Order |
| Дата | |
| Msg-id | 27655.1006229491@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Foreign Key Constraint Deletion Order (<cnliou@eurosport.com>) |
| Ответы |
Re: Foreign Key Constraint Deletion Order
|
| Список | pgsql-sql |
<cnliou@eurosport.com> writes:
> Am I asking for too much, or RI and triggers were not
> designed for operations like this example in the
> first place?
The problem is that RI is implemented by triggers, and there's
no guarantees about the firing order of multiple triggers.
So you don't know whether your custom triggers will fire
before or after the RI actions occur.
We've had some discussions in the past about arranging things
so that trigger firing order could be predicted/controlled.
But nothing's been done about it yet. Search the archives
if you want to see the prior discussions.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера