From: | Richard Broersma Jr <rabroersma(at)yahoo(dot)com> |
---|---|
To: | Daniel van Ham Colchete <daniel(dot)colchete(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Possible bug (or I don't understand how foreign keys should work with partitions) |
Date: | 2007-06-22 21:42:39 |
Message-ID: | 442208.52402.qm@web31810.mail.mud.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I was testing how
> foreign keys would work in this case and ran into this.
>
> Is this really a bug? If not, what am I doing wrong please?
Here is what the postgresql manual says about this:
A serious limitation of the inheritance feature is that indexes (including unique constraints) and
foreign key constraints only apply to single tables, not to their inheritance children. This is
true on both the referencing and referenced sides of a foreign key constraint. Thus, in the terms
of the above example:
http://www.postgresql.org/docs/8.2/interactive/ddl-inherit.html#DDL-INHERIT-CAVEATS
Overcoming this limitation is on the todo list, but as far as I know it isn't slated to be fixed
in the upcomming 8.3. Perhaps 8.4 will include this feature.
Regards,
Richard Broersma Jr.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-06-22 21:58:37 | Re: permission denied for schema |
Previous Message | Kris Jurka | 2007-06-22 21:33:23 | Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3 |