Cascade on update statement, not on table definition

Поиск
Список
Период
Сортировка
От webmaster@peladeiro.com.br
Тема Cascade on update statement, not on table definition
Дата
Msg-id 200302052123.h15LNcK05573@pipobox.peladeiro.com.br
обсуждение исходный текст
Список pgsql-admin
Hi,

I saw I can define a table that specifies a ON UPDATE CASCADE for a Foreign Key.

I have a lot of tables with FK�s, and a lot of others with others FK\'s for the firts ones, and so on, and I haven�t
definedthe ON CASCADE clause on the FK�s tables.  
Now I need to update a primary key on the \"mother\" table.

Is there a way to execute a stmt like \'update tbl set id_field=NEW_ID where id_field=OLD_ID on CASCADE\', or something
likethat? Or do I need to redefine my tables, or the constraints? 

Tks
Felipe Nascimento

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with VACUUM
Следующее
От: Geoffrey Wossum
Дата:
Сообщение: Problems upgrading from 7.1.3