| От | Culley Harrelson |
|---|---|
| Тема | Implementing cascading deletes on an existing table |
| Дата | |
| Msg-id | 3AB8BDC9.D71F5397@yahoo.com обсуждение исходный текст |
| Ответы |
Re: Implementing cascading deletes on an existing table
|
| Список | pgsql-general |
Hi all, Im trying to find out the best way to implement cascading deletes on an existing table. I have this: create table fe_custom_set_card( custom_set_id int4 references fe_custom_set(custom_set_id) on delete cascade, card_id int4 references fe_card(card_id), card_sequence int2, category text, primary key(custom_set_id, card_id) ); and I want to implement this: create table fe_custom_set_card( custom_set_id int4 references fe_custom_set(custom_set_id) on delete cascade, card_id int4 references fe_card(card_id) on delete cascade, card_sequence int2, category text, primary key(custom_set_id, card_id) ); How do I go about making this transition? Dump the data, drop the table, recreate it and load the data?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера