Re: Possible bug (or I don't understand how foreign keys should work with partitions)

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Possible bug (or I don't understand how foreign keys should work with partitions)
Дата
Msg-id 442208.52402.qm@web31810.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Possible bug (or I don't understand how foreign keys should work with partitions)  ("Daniel van Ham Colchete" <daniel.colchete@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: permission denied for schema