Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T4ufw-0008D1-7R for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 14:15:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T4ufu-00024l-Ih for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 14:15:51 +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 q7OEFirq019795; Fri, 24 Aug 2012 10:15:44 -0400 (EDT) From: Tom Lane To: Amit Kapila cc: "'Chris Travers'" , pgsql-bugs@postgresql.org Subject: Re: Minor inheritance/check bug: Inconsistent behavior In-reply-to: <000301cd81e6$81f942b0$85ebc810$@kapila@huawei.com> References: <10285.1345784596@sss.pgh.pa.us> <000301cd81e6$81f942b0$85ebc810$@kapila@huawei.com> Comments: In-reply-to Amit Kapila message dated "Fri, 24 Aug 2012 16:22:07 +0530" Date: Fri, 24 Aug 2012 10:15:44 -0400 Message-ID: <19794.1345817744@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/185 X-Sequence-Number: 33909 Amit Kapila writes: > From: pgsql-bugs-owner@postgresql.org > [mailto:pgsql-bugs-owner@postgresql.org] On Behalf Of Tom Lane >> None of the system columns are set at the time check constraints are >> checked. > Is there any problem if set tableOID before calling ExecConstarints()? Well, possibly we could kluge things to make that particular case work, but if someone expects that to be valid then why not oid, ctid, xmin, etc? And more to the point, what's the value of examining tableoid in a check constraint? The constraint is attached to a particular table, so the tableoid would be a constant for it anyway. regards, tom lane