Modifying FK constraints

Поиск
Список
Период
Сортировка
От Oleg Lebedev
Тема Modifying FK constraints
Дата
Msg-id BA823062DCC29644992A83C3C5AF9FCBE330@wistomail01.waterford.org
обсуждение исходный текст
Ответы Re: Modifying FK constraints  (Richard Huxton <dev@archonet.com>)
Re: Modifying FK constraints  (Michael Fuhr <mike@fuhr.org>)
Re: Modifying FK constraints  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
Greetings.
 
Is it possible to modify a foreign key constraint and force it to cascade on update? If there is no such SQL command, then is it possible to update some system tables to accomplish this?
 
The problem is that I have a bunch of tables with FK constraints and I need to update primary key values in a lot of these tables. FK constraints were declared, but without cascading updates. Now, I am trying to modify all of them to cascade updates so that I can change primary keys and have these changes propaged to the referencing values.
 
What would be the easiest solution for this?
 
Thanks.
 
Oleg

В списке pgsql-general по дате отправления:

Предыдущее
От: "Goutam Paruchuri"
Дата:
Сообщение: Error connecting using pgadmin from different computer !!
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Modifying FK constraints