From: Amit Kapila <amit.kapila@huawei.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Robert Haas' <robertmhaas@gmail.com>
Cc: 'Chris Travers' <chris@metatrontech.com>
Cc: pgsql-bugs@postgresql.org
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> (raw)
In-Reply-To: <8867.1346099641@sss.pgh.pa.us>
References: <CAPKNUte46wM7=JAvr+Y65i7JT5wdaL=UgHUUA=xibYtXrHi_Gg@mail.gmail.com>
<10285.1345784596@sss.pgh.pa.us>
<50375cfe.a77d440a.5b24.7c45SMTPIN_ADDED@mx.google.com>
<CAPKNUtcm_4G+ybJsu-hA9qs9oe0CCi=9GWyTGgJ2NjjvupiKcQ@mail.gmail.com>
<20286.1345819107@sss.pgh.pa.us>
<CA+TgmoZg1SXqtFmGQ8qH_kiWVF5AOuM6GxdTpA=GuUYaBm0LEA@mail.gmail.com>
<8867.1346099641@sss.pgh.pa.us>
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, August 28, 2012 2:04 AM
Robert Haas <robertmhaas@gmail.com> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: amit.kapila@huawei.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, chris@metatrontech.com
Subject: Re: Minor inheritance/check bug: Inconsistent behavior
In-Reply-To: <004a01cd8509$7e2f95a0$7a8ec0e0$@kapila@huawei.com>
References: <CAPKNUte46wM7=JAvr+Y65i7JT5wdaL=UgHUUA=xibYtXrHi_Gg@mail.gmail.com> <10285.1345784596@sss.pgh.pa.us> <50375cfe.a77d440a.5b24.7c45SMTPIN_ADDED@mx.google.com> <CAPKNUtcm_4G+ybJsu-hA9qs9oe0CCi=9GWyTGgJ2NjjvupiKcQ@mail.gmail.com> <20286.1345819107@sss.pgh.pa.us> <CA+TgmoZg1SXqtFmGQ8qH_kiWVF5AOuM6GxdTpA=GuUYaBm0LEA@mail.gmail.com> <8867.1346099641@sss.pgh.pa.us> <004a01cd8509$7e2f95a0$7a8ec0e0$@kapila@huawei.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox