Re: Minor inheritance/check bug: Inconsistent behavior - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Minor inheritance/check bug: Inconsistent behavior
Date
Msg-id 19794.1345817744@sss.pgh.pa.us
Whole thread Raw
In response to Re: Minor inheritance/check bug: Inconsistent behavior  (Amit Kapila <amit.kapila@huawei.com>)
Responses Re: Minor inheritance/check bug: Inconsistent behavior  (Amit Kapila <amit.kapila@huawei.com>)
List pgsql-bugs
Amit Kapila <amit.kapila@huawei.com> 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

pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Minor inheritance/check bug: Inconsistent behavior
Next
From: Chris Travers
Date:
Subject: Re: Minor inheritance/check bug: Inconsistent behavior