Re: Should this require CASCADE? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Should this require CASCADE?
Date
Msg-id GNELIHDDFBOCMGBFGEFOGEBICDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: Should this require CASCADE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Should this require CASCADE?
List pgsql-hackers
With all this dependency stuff, what happens with the ALTER TABLE / DROP NOT
NULL syntax we came up with?

Maybe we should allow RESTRICT/CASCADE on that syntax and if restrict is
specified, you can't drop it if a primary key depends on it and if cascade
is specified it will drop the primary key...

Just for consistency...

Also, when talking about whether or not the index supporting a constraint
should be sort of 'hidden' from the user, should not we change pg_dump to
dump unique indices using the ALTER TABLE syntax, rather than the CREATE
UNIQUE INDEX syntax?  Otherwise this information will be lost.

Chris



pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: bugzilla.pgaccess.org
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: [PATCHES] Changes in /contrib/fulltextindex