pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)]
2+ messages / 2 participants
[nested] [flat]

* [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)]
@ 2001-05-16 12:45 Chris Ryan <chris@greatbridge.com>
  2001-05-16 17:19 ` Re: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID:  269) (new)] Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Chris Ryan @ 2001-05-16 12:45 UTC (permalink / raw)
  To: pgsql-sql

	I received this bug on a project I administer that Isn't related to my
project. I forwarded it here to see if any of you could help this
person.


gorefest@ossi.fho-emden.de wrote:
> 
> Title: reference error when using inherited tables
> Bug Type: Software bug
> Severity: Serious
> Software Version: Other
> Environment: k6III-500/394
> SuSE 7.1
> Postgres 7.1
> 
> Created By: gorefest
> Description: Hi
> 
> 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 ?
> 
> greetings gorefest
> Status: Submitted
> 
> http://www.greatbridge.org/project/gborg/bugs/bugupdate.php?269
> 
> _______________________________________________
> Gborg-bugs mailing list
> Gborg-bugs@greatbridge.org
> http://www.greatbridge.org/mailman/listinfo/gborg-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID:  269) (new)]
  2001-05-16 12:45 [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)] Chris Ryan <chris@greatbridge.com>
@ 2001-05-16 17:19 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephan Szabo @ 2001-05-16 17:19 UTC (permalink / raw)
  To: gorefest@ossi.fho-emden.de; +Cc: 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.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-05-16 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-16 12:45 [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)] Chris Ryan <chris@greatbridge.com>
2001-05-16 17:19 ` Re: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID:  269) (new)] Stephan Szabo <sszabo@megazone23.bigpanda.com>

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