Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6JEY-0007TD-Iv for pgsql-bugs@postgresql.org; Tue, 28 Aug 2012 10:41:22 +0000 Received: from szxga02-in.huawei.com ([119.145.14.65]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6JEW-0006YA-KF for pgsql-bugs@postgresql.org; Tue, 28 Aug 2012 10:41:22 +0000 Received: from 172.24.2.119 (EHLO szxeml202-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AOD54079; Tue, 28 Aug 2012 18:41:15 +0800 (CST) Received: from SZXEML424-HUB.china.huawei.com (10.82.67.163) by szxeml202-edg.china.huawei.com (172.24.2.42) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 28 Aug 2012 18:40:04 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml424-hub.china.huawei.com (10.82.67.163) with Microsoft SMTP Server id 14.1.323.3; Tue, 28 Aug 2012 18:40:08 +0800 From: Amit Kapila To: "'Tom Lane'" , "'Robert Haas'" CC: "'Chris Travers'" , References: <10285.1345784596@sss.pgh.pa.us> <50375cfe.a77d440a.5b24.7c45SMTPIN_ADDED@mx.google.com> <20286.1345819107@sss.pgh.pa.us> <8867.1346099641@sss.pgh.pa.us> In-Reply-To: <8867.1346099641@sss.pgh.pa.us> Subject: Re: Minor inheritance/check bug: Inconsistent behavior Date: Tue, 28 Aug 2012 16:10:07 +0530 Message-ID: <004a01cd8509$7e2f95a0$7a8ec0e0$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac2Ek07BbZxmBrtxQ/+OKVKEkjmn/wAdUW3w Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201208/212 X-Sequence-Number: 33936 From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Tuesday, August 28, 2012 2:04 AM Robert Haas writes: >> Maybe, but in that case shouldn't referencing a system column chuck an error? > Yeah, possibly. I think none of them are populated with anything useful > during INSERT checks (though OID might be an exception?). Less sure > about the state during UPDATE checks, though. AFAICT during Update also, it doesn't contain useful. The only chance it would have contain something useful is when it goes for EvalPlanQual and then again comes to check for constraints. However these attributes get filled in heap_update much later. So now should the fix be that it returns an error for system column reference except for OID case? With Regards, Amit Kapila.