Re: DROP EXTENSION

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: DROP EXTENSION
Дата
Msg-id CAB7nPqSnP6GUYqsk1Qcw5un0dj+D3YwUooM5+m7OCk8MB5xXgw@mail.gmail.com
обсуждение исходный текст
Ответ на DROP EXTENSION  (mschwan@opentext.com)
Ответы Re: DROP EXTENSION  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: mschwan@opentext.com
Дата:
Сообщение: DROP EXTENSION
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: DROP EXTENSION