Re: BUG #16856: Crash when add "_RETURN" rule on child table
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: todoubaba@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2021-02-06T17:31:01Z
Lists: 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
Commits
-
Disallow converting an inheritance child table to a view.
- ad85e5efa1bf 10.16 landed
- 7736ab05fe83 9.6.21 landed
- 5ad03374bfe7 9.5.25 landed
- 580069037cec 11.11 landed
- f7332195708d 12.6 landed
- dd705a039f6c 14.0 landed
- 4353bc878135 13.2 landed