Re: Possible bug (or I don't understand how foreign keys should work with partitions) - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Possible bug (or I don't understand how foreign keys should work with partitions)
Date
Msg-id 442208.52402.qm@web31810.mail.mud.yahoo.com
Whole thread Raw
In response to Possible bug (or I don't understand how foreign keys should work with partitions)  ("Daniel van Ham Colchete" <daniel.colchete@gmail.com>)
List 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.

pgsql-general by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
Next
From: Tom Lane
Date:
Subject: Re: permission denied for schema