RI Bug In Inherited Table

From: "cn cn" <cnliou(at)graffiti(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: RI Bug In Inherited Table
Date: 2003-03-12 12:13:53
Message-ID: 20030312121353.27530.qmail@graffiti.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi!

Please try the following.

Regards,

CN
-------------
CREATE TABLE tt1 (
c1int primary key
)WITHOUT OIDS;

CREATE TABLE tt2 (
PRIMARY KEY (c1,c2),
c1int,
c2int
)INHERITS (tt1) WITHOUT OIDS;

CREATE TABLE tt3 (
CONSTRAINT fktt3c1 FOREIGN KEY (c1) REFERENCES tt1 (c1),
PRIMARY KEY (c1,c2),
c1int,
c2int,
c3int
)WITHOUT OIDS;

INSERT INTO tt2 VALUES(1,2);
INSERT INTO tt3 VALUES(1,2,3); --This statement produces fktt3c1 referential integrity violation
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message cn cn 2003-03-12 12:27:06 RI Bug In Inherited Table
Previous Message Tom Lane 2003-03-12 06:13:40 Re: Aliased SubSelect in HAVING clause bug -- in progress?