Re: changing referential integrety action on existing table - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: changing referential integrety action on existing table
Date
Msg-id 20030206121737.F41355-100000@megazone23.bigpanda.com
Whole thread Raw
In response to changing referential integrety action on existing table  ("Matthew Nuzum" <cobalt@bearfruit.org>)
List pgsql-sql
On Thu, 6 Feb 2003, Matthew Nuzum wrote:

> I have a table that uses the NO ACTION action for it's referential
> integrity.  I'd like to change it to CASCADE for the ON DELETE event.
> I'm using Postgres 7.2.

I think the best way is to drop all three triggers for the constraint and
use alter table add constraint to add the constraint again withe the
options you want.



pgsql-sql by date:

Previous
From: "Chad Thompson"
Date:
Subject: Re: 7.2 functions that return multiple result sets?
Next
From: Tom Lane
Date:
Subject: Re: numeric when compared to literal