Re: Check if installed extension is in use - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Check if installed extension is in use
Date
Msg-id a3f28b14e95be6472dfd81eb5b9a475d2cd2c36f.camel@cybertec.at
Whole thread Raw
In response to Check if installed extension is in use  (Christian Lehmann <info@chlehmann.ch>)
List 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




pgsql-admin by date:

Previous
From: Christian Lehmann
Date:
Subject: Check if installed extension is in use
Next
From: Yambu
Date:
Subject: Invalid byte sequence