Re: RESTRICT / CASCADE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RESTRICT / CASCADE
Дата
Msg-id 12924.1031599458@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RESTRICT / CASCADE  (Rod Taylor <rbt@zort.ca>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: RESTRICT / CASCADE
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: RESTRICT / CASCADE