Re: ON DELETE Behavior after the fact - Mailing list pgsql-general

From Stephan Szabo
Subject Re: ON DELETE Behavior after the fact
Date
Msg-id Pine.BSF.4.21.0104271039530.26669-100000@megazone23.bigpanda.com
Whole thread Raw
In response to ON DELETE Behavior after the fact  (John Pagakis <John.Pagakis@DevelopOnline.com>)
List pgsql-general
On Fri, 27 Apr 2001, John Pagakis wrote:

> I have a database in production that requires some ON DELETE behavior.  Is
> there a way to use ALTER TABLE to define ON DELETE behavior for the foreign
> keys, or will I have to write triggers at this point?

The easiest thing is probably to drop the triggers for the foreign key
constraint you want to change, and re-add the constraint using ALTER
TABLE specifying the on delete behavior.



pgsql-general by date:

Previous
From: Pierce Tyler
Date:
Subject: Re: Need for newbie friendly docs (Was newbie struggling...)
Next
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL and mySQL database size question