DROP CASCADE transitive dependencies

Поиск
Список
Период
Сортировка
От C GG
Тема DROP CASCADE transitive dependencies
Дата
Msg-id CAJXW-z8VKSb_+do3aNotDKA85ekmK_cg8UmctGEsP6MT11Pw0A@mail.gmail.com
обсуждение исходный текст
Ответы Re: DROP CASCADE transitive dependencies
Список pgsql-general
...PostgreSQL 9.5...

`DROP SCHEMA blah;` reports all the dependent objects and advises to `DROP SCHEMA blah CASCADE;` ... 

Will DROP ... CASCADE traverse the entire dependency tree for each of the dependent objects (potentially dropping something unintended), or will it stop at the first level and balk at any new transitive dependencies? 

All the dependent objects listed by `DROP SCHEMA blah` are fair game to be dropped, but if I add CASCADE I don't necessarily want to have it go beyond that initial list without my say-so.

The alternative is to drop each one in the list individually without CASCADE-- a tedious task I'd rather short-cut, but in a non-reckless manner ;) ...

CG

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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Query never completes with an OR condition
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Query never completes with an OR condition