Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 90EB9B5DDC3 for ; Fri, 4 Nov 2011 14:21:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 62548-08 for ; Fri, 4 Nov 2011 17:21:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 2C362B5DDB1 for ; Fri, 4 Nov 2011 14:21:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pA4HLaPF010926; Fri, 4 Nov 2011 13:21:36 -0400 (EDT) To: Robert Haas cc: Greg Fausak , pgsql-bugs@postgresql.org Subject: Re: BUG #6286: Table Partitioning - SQL/MED - interaction broken In-reply-to: References: <201111031757.pA3Hv3KT052627@wwwmaster.postgresql.org> <12784.1320354445@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 04 Nov 2011 12:14:10 -0400" Date: Fri, 04 Nov 2011 13:21:36 -0400 Message-ID: <10925.1320427296@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/36 X-Sequence-Number: 31631 Robert Haas writes: > On Thu, Nov 3, 2011 at 5:07 PM, Tom Lane wrote: >> We probably ought to have something in there to throw an error ... > Probably not for rules in general, but we shouldn't let people turn > tables into views if they are involved in table inheritance, as either > a parent or a child. Well, what I had in mind was disallowing any rules to be attached to an inheritance child, because they won't get expanded. However, you have a point I guess: someone could conceivably want to have a rule that only takes effect when a child is accessed directly. regards, tom lane