Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-09-06 Thread Amit Kapila
On Friday, September 07, 2012 12:20 AM Amit Kapila wrote: On Tue, Aug 28, 2012 at 6:40 AM, Amit Kapila wrote: >> 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 c

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-09-06 Thread Robert Haas
On Tue, Aug 28, 2012 at 6:40 AM, Amit Kapila wrote: > 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_upd

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-28 Thread Amit Kapila
From: Tom Lane [mailto:t...@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 mig

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-27 Thread Chris Travers
On Mon, Aug 27, 2012 at 1:34 PM, Tom Lane wrote: > 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?). Les

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-27 Thread Tom Lane
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.

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-27 Thread Robert Haas
On Fri, Aug 24, 2012 at 10:38 AM, Tom Lane wrote: > Chris Travers writes: >> Table inheritance would be easier if there was a way to declare a >> constraint such that it prevents insert for some rows on the parent >> but not for a child and/or vice versa. > > FWIW, 9.2 adds support for constraint

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-24 Thread Amit Kapila
From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Friday, August 24, 2012 7:46 PM Amit Kapila writes: > From: pgsql-bugs-ow...@postgresql.org > [mailto:pgsql-bugs-ow...@postgresql.org] On Behalf Of Tom Lane >>> None of the system columns are set at the time check constraints are >>> checked. >> I

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-24 Thread Tom Lane
Chris Travers writes: > Table inheritance would be easier if there was a way to declare a > constraint such that it prevents insert for some rows on the parent > but not for a child and/or vice versa. FWIW, 9.2 adds support for constraints that only apply to the named table and don't get inherite

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-24 Thread Chris Travers
On Fri, Aug 24, 2012 at 3:52 AM, Amit Kapila wrote: > From: pgsql-bugs-ow...@postgresql.org > [mailto:pgsql-bugs-ow...@postgresql.org] On Behalf Of Tom Lane > Sent: Friday, August 24, 2012 10:33 AM > Chris Travers writes: >>> My guess is that tableoid is not known when the check constraint is >>>

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-24 Thread Tom Lane
Amit Kapila writes: > From: pgsql-bugs-ow...@postgresql.org > [mailto:pgsql-bugs-ow...@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

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-24 Thread Amit Kapila
From: pgsql-bugs-ow...@postgresql.org [mailto:pgsql-bugs-ow...@postgresql.org] On Behalf Of Tom Lane Sent: Friday, August 24, 2012 10:33 AM Chris Travers writes: >> My guess is that tableoid is not known when the check constraint is >> checked. >None of the system columns are set at the time chec

Re: [BUGS] Minor inheritance/check bug: Inconsistent behavior

2012-08-23 Thread Tom Lane
Chris Travers writes: > My guess is that tableoid is not known when the check constraint is > checked. None of the system columns are set at the time check constraints are checked. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To mak