Re: Undocumented behavior od DROP SCHEMA ... CASCADE

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Undocumented behavior od DROP SCHEMA ... CASCADE
Дата
Msg-id fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com
обсуждение исходный текст
Ответ на Undocumented behavior od DROP SCHEMA ... CASCADE  (denisa.cirstescu@asentinel.com)
Ответы Re: Undocumented behavior od DROP SCHEMA ... CASCADE  (Vik Fearing <vik@2ndquadrant.fr>)
Список pgsql-docs
On 8/5/16 6:48 AM, denisa.cirstescu@asentinel.com wrote:
> Page: https://www.postgresql.org/docs/9.5/static/sql-dropschema.html
> Description:
>
> DROP SCHEMA ... CASCADE has a behavior that has not been documented.
> According to the documentation: "CASCADE - Automatically drop objects
> (tables, functions, etc.) that are contained in the schema.".
> Well, besides this, DROP SCHEMA ... CASCADE also drops all the views which
> depends on the schema that is being dropped. It does not matter if the views
> are in the public schema or another schema than the one being dropped, they
> are deleted.

Can you give an example?

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


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Wording in TABLESAMPLE documentation
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: Undocumented behavior od DROP SCHEMA ... CASCADE