Re: RESTRICT / CASCADE - Mailing list pgsql-docs

From Tom Lane
Subject Re: RESTRICT / CASCADE
Date
Msg-id 12924.1031599458@sss.pgh.pa.us
Whole thread Raw
In response to RESTRICT / CASCADE  (Rod Taylor <rbt@zort.ca>)
List pgsql-docs
Rod Taylor <rbt@zort.ca> writes:
> This note is currently in the 'Dependency Tracking (2.8)' section:
> Note:  According to the SQL standard, specifying either RESTRICT or
> CASCADE is required. No database system actually implements it that way,
> but the defaults might be different.

The note is perhaps not very well worded.  No one actually requires you
to say RESTRICT or CASCADE, but there are some systems where the default
assumption is CASCADE.  I think everyone here agrees that that's a
ridiculously dangerous default, so it's quite unlikely that PG's
behavior would ever vary from what it is now.

> If the defaults are different, perhaps the documentation should show
> it's examples using RESTRICT or CASCADE explicitly?

No, that's just pointless pedantry.

            regards, tom lane

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: RESTRICT / CASCADE
Next
From: Rod Taylor
Date:
Subject: Re: RESTRICT / CASCADE