From: Adrian Klaver <adrian.klaver@aklaver.com>
To: bhargav kamineni <bhargavpostgres@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Extensions
Date: Thu, 11 Jul 2019 07:27:23 -0700
Message-ID: <1dfd02cf-ca53-22d9-d2fd-98c7bf75e12a@aklaver.com> (raw)
In-Reply-To: <CADCf-WMg8KOrHuuUtPJe2gPpQHwroiDaaEbLBW3MkJmBwxT=OA@mail.gmail.com>
References: <CADCf-WMg8KOrHuuUtPJe2gPpQHwroiDaaEbLBW3MkJmBwxT=OA@mail.gmail.com>
On 7/11/19 6:54 AM, bhargav kamineni wrote:
> Hi Team,
>
> I have a doubt regarding the extensions.My db has these many extensions > Name
> -------------------
> adminpack
> btree_gist
> dblink
> file_fdw
> fuzzystrmatch
> hstore
> insert_username
> intarray
> pageinspect
> pg_buffercache
> pg_freespacemap
> pg_repack
> pg_stat_statements
> pg_trgm
> pgcrypto
> plpgsql
> unaccent
I'm assuming the above came from using \dx in psql.
>
>
> How can i figure out what all extensions are being used ? is there any way ?
One quick and dirty way I know is:
test=# begin ;
BEGIN
test=# drop extension plpgsql ;
ERROR: cannot drop extension plpgsql because other objects depend on it
DETAIL: function upgrade_serial_to_identity(regclass,name) depends on
language plpgsql
function fizzbuzz(integer,integer) depends on language plpgsql
function child_fnc() depends on language plpgsql
function child_fnc(character varying) depends on language plpgsql
function parent_fnc() depends on language plpgsql
...
rollback;
>
> Thanks,
> Bhargav
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, bhargavpostgres@gmail.com
Subject: Re: Extensions
In-Reply-To: <1dfd02cf-ca53-22d9-d2fd-98c7bf75e12a@aklaver.com>
References: <CADCf-WMg8KOrHuuUtPJe2gPpQHwroiDaaEbLBW3MkJmBwxT=OA@mail.gmail.com> <1dfd02cf-ca53-22d9-d2fd-98c7bf75e12a@aklaver.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