Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T4v2B-0001OP-0E for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 14:38:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T4v29-0001s1-2p for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 14:38:50 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q7OEcRQD020287; Fri, 24 Aug 2012 10:38:27 -0400 (EDT) From: Tom Lane To: Chris Travers cc: Amit Kapila , pgsql-bugs@postgresql.org Subject: Re: Minor inheritance/check bug: Inconsistent behavior In-reply-to: References: <10285.1345784596@sss.pgh.pa.us> <50375cfe.a77d440a.5b24.7c45SMTPIN_ADDED@mx.google.com> Comments: In-reply-to Chris Travers message dated "Fri, 24 Aug 2012 07:18:15 -0700" Date: Fri, 24 Aug 2012 10:38:27 -0400 Message-ID: <20286.1345819107@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/188 X-Sequence-Number: 33912 Chris Travers writes: > Table inheritance would be easier if there was a way to declare a > constraint such that it prevents insert for some rows on the parent > but not for a child and/or vice versa. FWIW, 9.2 adds support for constraints that only apply to the named table and don't get inherited to children. I think use of such constraints is probably better design than mucking around with tableoid, even if we were to make that work. regards, tom lane