Re: URGENT: How to change ON CASCADE RESTRICT to DELETE?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Robert <robert(at)robert(dot)cz>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: URGENT: How to change ON CASCADE RESTRICT to DELETE?
Date: 2003-07-02 09:03:37
Message-ID: 20030702020230.N69957-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wed, 2 Jul 2003, Robert wrote:

> Hi,
>
> how can I change ON CASCADE RESTRICT to ON CASCADE DELETE? I need to
> do it on my production database now (client is really complaining...)
> and I dont see any DROP CONSTRAINT in the docs - whats the right and/or
> simplest way? Thanks a lot

If you're using 7.3, you should IIRC be able to use alter table to drop
the constraint and then re-add it.

If you're using an older version, I think you may need to find the
triggers involved and drop those and then re-add the constraint. I think
techdocs has some info on finding the triggers.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message btober 2003-07-02 09:08:56 Re: Text datatype as Memo in Delphi
Previous Message Shridhar Daithankar 2003-07-02 08:34:36 Re: Duplicate key insert question