| From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
|---|---|
| To: | gorefest(at)ossi(dot)fho-emden(dot)de |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)] |
| Date: | 2001-05-16 17:19:04 |
| Message-ID: | Pine.BSF.4.21.0105161017110.28232-100000@megazone23.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
> I have a problem with inherited refences.
> For example :
> CREATE TABLE A(LNR integer Primary key blabla);
> CREATE TABLE B () INHERITS(A);
> CREATE TABLE C(LNR integer primary key blabla, RNR Intger not null,
> unique(RNR), FOREIGN KEY(RNR) REFERENCES A.LNr ON DELETE CASCADE);
> will throw an error, if i try to insert an object into B with a
> counterpart in C. A with a counterpart in C works. Due to the fact,
> that the inheritance is an acyclic graph, the machine should look in B
> to. But i get a reference error instead. Are references on inherited
> tables not implemented yet ?
Exactly. Currently a foreign key reference is a reference to only the
table explictly mentioned. There's a bunch of work that needs to get
done to fix this, but people have been thinking about it.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Edwin S. Ramirez | 2001-05-16 17:30:40 | Help! Record logging |
| Previous Message | Peter Eisentraut | 2001-05-16 15:51:05 | Re: To Run 2 database servers at the same time |