pg.ddx.io pgsql-docs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: denisa.cirstescu@asentinel.com
To: pgsql-docs@postgresql.org
Subject: Re: Undocumented behavior od DROP SCHEMA ... CASCADE
Date: Fri, 12 Aug 2016 08:47:55 -0400
Message-ID: <fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com> (raw)
In-Reply-To: <20160805104837.1412.84915@wrigleys.postgresql.org>
References: <20160805104837.1412.84915@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
view thread (15+ messages) latest in thread
Message-ID: <fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com> Permalink: ../fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com/ Also on: postgresql.org/message-id/fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-docs@postgresql.org Cc: peter.eisentraut@2ndquadrant.com, denisa.cirstescu@asentinel.com Subject: Re: Undocumented behavior od DROP SCHEMA ... CASCADE In-Reply-To: <fbb1360b-e450-aaf6-19bd-9bfcffb35ed7@2ndquadrant.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox