Re: Foreign key constraint delete fire order

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Foreign key constraint delete fire order
Дата
Msg-id 16370.1159543478@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Foreign key constraint delete fire order  ("CN" <cnliou9@fastmail.fm>)
Список pgsql-general
"CN" <cnliou9@fastmail.fm> writes:
> I wish foreign key constraint trigger guarantees that rows in
> referensing table are deleted before the rows in referenced table is
> deleted.
> ...
> Does my wish make sense or violate any standard?

Sorry, the SQL standard says that it happens in the current order (rows
deleted as a consequence of RI actions are to be dropped at the *end* of
the SQL-statement).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.1.4 compile problem
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: benchmark suite