Re: BUG #16856: Crash when add "_RETURN" rule on child table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16856: Crash when add "_RETURN" rule on child table
Date
Msg-id 192154.1612632661@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #16856: Crash when add "_RETURN" rule on child table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I wrote:
> So my take is that this is an oversight in the CREATE RULE logic
> that allows converting a table to a view: if it has inheritance
> parents or children we must disallow doing that.

Come to think of it, applying ON INSERT/UPDATE/DELETE rules to
inheritance tree members is a bit problematic too.  If you do
"UPDATE parent SET ..." then any ON UPDATE rules on the child
table are ignored (since the rewriter considers only "parent").
This probably doesn't lead to any system malfunctions, but
users might find it surprising.  I bet we don't document that
adequately.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16856: Crash when add "_RETURN" rule on child table
Next
From: Piotr Włodarczyk
Date:
Subject: Re: SV: Problem with pg_notify / listen