Re: Bug with child tables referencing parent table? - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: Bug with child tables referencing parent table?
Date
Msg-id 20021101104351.O60625-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Bug with child tables referencing parent table?  (Stefan Schwarzer <stefan.schwarzer@tu-clausthal.de>)
List pgsql-bugs
On Thu, 31 Oct 2002, Stefan Schwarzer wrote:

> I think I've found a bug (see below). If you think it's not a bug, I
> would be thankful for a workaround. I tried omitting the foreign key
> constraint. That works but is unsatisfactory.

Foreign key constraints reference only the table named in the constraint,
not any of its children and isn't inherited to children.  If the row were
in test_parent specifically, it would have worked.  In general I haven't
seen any great workarounds, usually I'd suggest splitting the key columns
to a separate table and have the each table in the tree reference that.

pgsql-bugs by date:

Previous
From: Neil Conway
Date:
Subject: Re: posgresql 7.3beta3 compile error in src/pl/plperl (perl extension)
Next
From: Jord Tanner
Date:
Subject: Re: hi-problem in creating database in postgresql 7.2.2