Re: Wierd rule problem - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Wierd rule problem
Date
Msg-id 4037.1106670147@sss.pgh.pa.us
Whole thread Raw
In response to Wierd rule problem  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: Wierd rule problem  (Hendrik Müller <user@invalid.domain>)
List 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 by date:

Previous
From: Hendrik Müller
Date:
Subject: Re: BUG #1428: SHGetSpecialFolderPath not found in SHELL32.dll
Next
From: "Cameron, Thomas"
Date:
Subject: Also submitted via web site bug report