Re: Inheritance foreign key unexpected behaviour

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Inheritance foreign key unexpected behaviour
Дата
Msg-id dcc563d10710210644m44ad46a5o43a28528253e5cbe@mail.gmail.com
обсуждение исходный текст
Ответ на Inheritance foreign key unexpected behaviour  ("M. van Egmond" <mvanegmond@quetalzorg.nl>)
Список pgsql-general
On 10/20/07, M. van Egmond <mvanegmond@quetalzorg.nl> wrote:
> Hi all,
>
> Im trying to use table inheritance in my database. I need it because i want
> to be able to link any object in the database to another. So i created a
> table my_object which has a serial, nothing more. All the other tables in
> the system are inherited from this my_object table. Im having difficulties
> adding foreign keys to the tables. This is my test setup:

From the inheritance docs at
http://www.postgresql.org/docs/8.2/static/ddl-inherit.html

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.

В списке pgsql-general по дате отправления:

Предыдущее
От: andy
Дата:
Сообщение: Re: looking for some real world performance numbers
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: keeping an index in memory