Re: [GENERAL] Adding ON UPDATE CASCADE to an existing foreign key

2006-05-05 Thread Rich Doughty
Stephan Szabo wrote: 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 (a

Re: [GENERAL] Adding ON UPDATE CASCADE to an existing foreign key

2006-05-04 Thread Stephan Szabo
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

[GENERAL] Adding ON UPDATE CASCADE to an existing foreign key constraint

2006-05-04 Thread Rich Doughty
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 rec