| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера