Attempt to fix inheritance limitations: unique and foreign keyconstraints
В списке pgsql-hackers по дате отправления:
| От | Raphael Medaer |
|---|---|
| Тема | Attempt to fix inheritance limitations: unique and foreign keyconstraints |
| Дата | |
| Msg-id | c0c0445c-34d7-0dd8-a68e-a3dec196b87e@escaux.com обсуждение исходный текст |
| Ответы |
Re: Attempt to fix inheritance limitations: unique and foreign key constraints
|
| Список | pgsql-hackers |
Hi pg-hackers,
I'm trying to fix some of limitations in table inheritance. My first use case concerns "referencing" foreign keys in parent table.
The attached patch propagates foreign keys to inherited tables. I'm automatically cloning foreign keys from parent table into children (with right dependencies). It's the native implementation of work-around described in documentation section 5.9.1. (Caveats).
To be honest it's my first pg hack. Thus it might contain (serious) issues (please be lenient with it).
Furthermore it's not yet documented (TODO !!)
As far as I tested it works pretty well; the internal triggers are installed on CREATE TABLE .. INHERIT and even after ALTER TABLE .. INHERIT.
If you have few minutes to challenge this hack and give your advices, be my guest !
Kind regards,
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера