| От | Simon Riggs |
|---|---|
| Тема | Re: FK's to refer to rows in inheritance child |
| Дата | |
| Msg-id | 1291220197.2006.57.camel@ebony обсуждение исходный текст |
| Ответ на | FK's to refer to rows in inheritance child (Yeb Havinga <yebhavinga@gmail.com>) |
| Список | pgsql-hackers |
On Wed, 2010-12-01 at 15:07 +0100, Yeb Havinga wrote: > FK's cannot refer to rows in inheritance childs. With some changes in > LockRows, together with removing the ONLY keyword in ri_trigger.c, it > was possible to refer to the rows in child relations. (WIP patch attached) This has a userspace solution, which seems preferable technically. Just have an Object table that is referred to by all parts of the hierarchy, maintained by triggers. With PK. CASCADE doesn't work, but then that was an open issue there anyway. -- Simon Riggs http://www.2ndQuadrant.com/books/PostgreSQL Development, 24x7 Support, Training and Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера