Re: RESTRICT / CASCADE

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: RESTRICT / CASCADE
Дата
Msg-id
Pine.LNX.4.44.0209091957280.18819-100000@localhost.localdomain
Ответ на
RESTRICT / CASCADE (Rod Taylor)
Список
Дерево обсуждения
RESTRICT / CASCADE Rod Taylor <rbt@zort.ca>
Re: RESTRICT / CASCADE Tom Lane <tgl@sss.pgh.pa.us>
Re: RESTRICT / CASCADE Peter Eisentraut <peter_e@gmx.net>
Re: RESTRICT / CASCADE Rod Taylor <rbt@zort.ca>
Rod Taylor writes:

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

Well, we're describing PostgreSQL, not other database systems that might
act differently.

I believe most SQL guides/books/courses/etc. simply use DROP TABLE name;
and this has also been historical practice in PostgreSQL, so we would
confuse users pretty heavily by adding RESTRICT or CASCADE everywhere.

Also, in most examples the choice between RESTRICT and CASCADE would have
to be arbitrarily made by the documentation writer and might not be what
the user really wanted to do.

-- 
Peter Eisentraut   peter_e@gmx.net

В списке pgsql-docs по дате отправления
От: Rod Taylor
Дата:
Сообщение: Re: pgsql user creation query:
От: Tom Lane
Дата:
Сообщение: Re: RESTRICT / CASCADE
FAQ