Re: Undocumented behavior od DROP SCHEMA ... CASCADE

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Undocumented behavior od DROP SCHEMA ... CASCADE
Дата
Msg-id 20160812222836.GA722084@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Undocumented behavior od DROP SCHEMA ... CASCADE  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Undocumented behavior od DROP SCHEMA ... CASCADE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
David G. Johnston wrote:

> If we are looking to improve things here I'd at least consider having the
> default cascade to be safe and not drop persisted data (I suppose that
> could functions linked to functional indexes...) and have a separate flag
> that would also be permitted to destroy data.  Having such a dependency
> listing query distinguish between data-loss and other would be a good
> intermediate step.

Well, if you happen to drop a view for which you no longer have the
definition, you may be similarly screwed.  I prefer the approach that we
consider all drops as potentially dangerous.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-docs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Undocumented behavior od DROP SCHEMA ... CASCADE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Undocumented behavior od DROP SCHEMA ... CASCADE