pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Matthew Nuzum <cobalt@bearfruit.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: changing referential integrety action on existing table
Date: Thu, 6 Feb 2003 12:19:13 -0800 (PST)
Message-ID: <20030206121737.F41355-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <006c01c2ce15$8a825eb0$6900a8c0@mattspc>

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.




view thread (2+ messages)

Message-ID: <20030206121737.F41355-100000@megazone23.bigpanda.com>
Permalink:  ../20030206121737.F41355-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030206121737.F41355-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, cobalt@bearfruit.org
  Subject: Re: changing referential integrety action on existing table
  In-Reply-To: <20030206121737.F41355-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox