| От | Tom Lane |
|---|---|
| Тема | Re: Undocumented behavior od DROP SCHEMA ... CASCADE |
| Дата | |
| Msg-id | 29387.1471042131@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Undocumented behavior od DROP SCHEMA ... CASCADE (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Список | pgsql-docs |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> 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.
There's also the minor problem that the SQL standard is quite clear about
what DROP CASCADE means, and it ain't that.
regards, tom lane
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера