Re: Wierd rule problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wierd rule problem
Дата
Msg-id 4037.1106670147@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Wierd rule problem  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Ответы Re: Wierd rule problem  (Hendrik Müller <user@invalid.domain>)
Список pgsql-bugs
Achilleus Mantzios <achill@matrix.gatewaynet.com> writes:
> CREATE RULE handle_delete_on_kid AS ON DELETE TO kid WHERE
>   (NOT old.onlythis) DO INSTEAD DELETE FROM parent
>   WHERE (parent.id = old.parid);

Bear in mind that the DELETEs issued by the ON DELETE CASCADE trigger
will be rewritten by this same rule.

There has been debate in the past whether this behavior is a feature or
a bug, but it's unlikely to change soon.

            regards, tom lane

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

Предыдущее
От: Hendrik Müller
Дата:
Сообщение: Re: BUG #1428: SHGetSpecialFolderPath not found in SHELL32.dll
Следующее
От: "Cameron, Thomas"
Дата:
Сообщение: Also submitted via web site bug report