| От | Adam Rich |
|---|---|
| Тема | altering foreign keys |
| Дата | |
| Msg-id | 008401c85d2a$9c7b8750$d57295f0$@r@sbcglobal.net обсуждение исходный текст |
| Ответы |
Re: altering foreign keys
Re: altering foreign keys |
| Список | pgsql-general |
In my database, I have a core table that nearly all other tables key against. Now I need to adjust all of those foreign keys to add a "on update cascade" action. Is there a way to alter the existing keys? (it didn't jump out at me in the manual) If not, is there a serious issue preventing this feature? If I have to drop and re-create all of the foreign keys, is it possible to wrap the whole operation in a transaction without risking invalid inserts in the referring tables? (I come from an Oracle background, where DDL causes an implicit commit)
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера