| От | Stephan Szabo |
|---|---|
| Тема | Re: Adding ON UPDATE CASCADE to an existing foreign key |
| Дата | |
| Msg-id | 20060504091559.H56325@megazone.bigpanda.com обсуждение исходный текст |
| Ответ на | Adding ON UPDATE CASCADE to an existing foreign key constraint (Rich Doughty <rich@opusvl.com>) |
| Ответы |
Re: Adding ON UPDATE CASCADE to an existing foreign key
|
| Список | pgsql-general |
On Thu, 4 May 2006, Rich Doughty wrote: > I have a foreign key constraint that I'd like to alter. I'd rather not > drop and re-create it due to the size of the table involved. All I need > to do is add an ON UPDATE CASCADE. > > Is it ok to set confupdtype to 'c' in pg_constraint (and will this be > all that's needed) or is it safer to drop and recreate the constraint? I don't think that's going to work, you'd probably need to change the function associated with the trigger involved too. It's probably safer to do the drop and create.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера