Re: DROP EXTENSION - Mailing list pgsql-docs

From Michael Paquier
Subject Re: DROP EXTENSION
Date
Msg-id CAB7nPqSnP6GUYqsk1Qcw5un0dj+D3YwUooM5+m7OCk8MB5xXgw@mail.gmail.com
Whole thread Raw
In response to DROP EXTENSION  (mschwan@opentext.com)
Responses Re: DROP EXTENSION
List pgsql-docs
On Tue, Jun 21, 2016 at 1:00 AM,  <mschwan@opentext.com> wrote:
> Page: https://www.postgresql.org/docs/9.5/static/sql-dropextension.html
> Description:
> I dropped an extension in my database with a function dependency.  The
> function was dropped (without messages of dependencies) and leaving the
> function intact.
> The lines "DROP EXTENSION removes extensions from the database. Dropping an
> extension causes its component objects to be dropped as well." is not clear.
>  It should be stated that by default the dependencies remain intact after
> the drop.

I am not following here. If an extension is dropped, so are its
dependencies. See that for example:
=# create extension pg_trgm;
CREATE EXTENSION
Time: 27.978 ms
=# \dx+ pg_trgm
                                  Objects in extension "pg_trgm"
                                        Object Description
--------------------------------------------------------------------------------------------------
 function gin_extract_query_trgm(text,internal,smallint,internal,internal,internal,internal)
 function gin_extract_value_trgm(text,internal)
[... lots of objects, including functions ...]
=# DROP EXTENSION pg_trgm;
DROP EXTENSION
=# \df gin_extract_query_trgm
                       List of functions
 Schema | Name | Result data type | Argument data types | Type
--------+------+------------------+---------------------+------
(0 rows)
--
Michael


pgsql-docs by date:

Previous
From: mschwan@opentext.com
Date:
Subject: DROP EXTENSION
Next
From: Alvaro Herrera
Date:
Subject: Re: DROP EXTENSION