Re: REFERENCES and INHERITS restrictions? - Mailing list pgsql-sql

From Gregory Stark
Subject Re: REFERENCES and INHERITS restrictions?
Date
Msg-id 87pruifqbo.fsf@oxford.xeocode.com
Whole thread Raw
In response to REFERENCES and INHERITS restrictions?  ("Stefan Scheidegger" <Stefan.Scheidegger@gmx.net>)
List pgsql-sql
"Stefan Scheidegger" <Stefan.Scheidegger@gmx.net> writes:

> Why is this not possible? It seems that this is about inheritance. When I
> reference directly to tbl_child1, everything works just fine.

I'm afraid inheritance doesn't work with foreign key references. You can have
references to specific tables but they don't include any child tables. A
related limitation is that you can't enforce unique constraints across tables
and their children.

Solving this doesn't seem to be high on anyone's priority list. If anything
what interests more people is using inheritance for partitioning support.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: how do I get table DDL from psql (not from pg_dump)
Next
From: Frank Bax
Date:
Subject: Re: how do I get table DDL from psql (not from pg_dump)