Re: ON DELETE Behavior after the fact

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: John Pagakis <John(dot)Pagakis(at)DevelopOnline(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ON DELETE Behavior after the fact
Date: 2001-04-27 17:40:57
Message-ID: Pine.BSF.4.21.0104271039530.26669-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-04-27 17:47:35 Re: PostgreSQL and mySQL database size question
Previous Message Vince Vielhaber 2001-04-27 17:31:58 While we're on the subject of searches...