pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila@huawei.com>
Cc: 'Chris Travers' <chris@metatrontech.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Minor inheritance/check bug: Inconsistent behavior
Date: Fri, 24 Aug 2012 10:15:44 -0400
Message-ID: <19794.1345817744@sss.pgh.pa.us> (raw)
In-Reply-To: <000301cd81e6$81f942b0$85ebc810$@kapila@huawei.com>
References: <CAPKNUte46wM7=JAvr+Y65i7JT5wdaL=UgHUUA=xibYtXrHi_Gg@mail.gmail.com>
	<10285.1345784596@sss.pgh.pa.us>
	<000301cd81e6$81f942b0$85ebc810$@kapila@huawei.com>

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




view thread (13+ messages)  latest in thread

Message-ID: <19794.1345817744@sss.pgh.pa.us>
Permalink:  ../19794.1345817744@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19794.1345817744@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, amit.kapila@huawei.com, chris@metatrontech.com
  Subject: Re: Minor inheritance/check bug: Inconsistent behavior
  In-Reply-To: <19794.1345817744@sss.pgh.pa.us>
  References: <CAPKNUte46wM7=JAvr+Y65i7JT5wdaL=UgHUUA=xibYtXrHi_Gg@mail.gmail.com> <10285.1345784596@sss.pgh.pa.us> <000301cd81e6$81f942b0$85ebc810$@kapila@huawei.com> <19794.1345817744@sss.pgh.pa.us>

* 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