Update cascade on stmt, not on table definition - Mailing list pgsql-admin

From Felipenasc@aol.com
Subject Update cascade on stmt, not on table definition
Date
Msg-id 23235213.3288E138.0B2082A6@aol.com
Whole thread Raw
Responses Re: Update cascade on stmt, not on table definition  (Robert Treat <xzilla@users.sourceforge.net>)
List 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

Felipe Nascimento
webmaster@peladeiro.com.br
www.peladeiro.com.br

pgsql-admin by date:

Previous
From: "Gareth Kirwan"
Date:
Subject: Re: Reserved words
Next
From: Rajesh Kumar Mallah
Date:
Subject: Re: Problems upgrading from 7.1.3