Re: Check if installed extension is in use

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Christian Lehmann <info(at)chlehmann(dot)ch>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Check if installed extension is in use
Date: 2021-06-30 14:27:49
Message-ID: a3f28b14e95be6472dfd81eb5b9a475d2cd2c36f.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 2021-06-30 at 16:14 +0200, Christian Lehmann wrote:
> Now my question: Is it possible to see if a certain extension is in
> active use?

BEGIN;
DROP EXTENSION plpython3u;
ROLLBACK;

If you can drop the extension, no objects depend on it.

For example, that will show if there are any PL/Python functions defined.

If you want to know if PL/Python functions are used, monitor
"pg_stat_user_functions" (after enabling "track_functions") and see if
the number of calls is growing.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Yambu 2021-07-01 07:29:58 Invalid byte sequence
Previous Message Christian Lehmann 2021-06-30 14:14:34 Check if installed extension is in use