Remove pg_stat_monitor
¶
To uninstall pg_stat_monitor
, do the following:
-
Disable statistics collection. Establish the
psql
session and run the following command :ALTER SYSTEM SET pg_stat_monitor.track = none;
-
Drop
pg_stat_monitor
extension:DROP EXTENSION pg_stat_monitor;
-
Remove
pg_stat_monitor
from theshared_preload_libraries
configuration parameter:ALTER SYSTEM SET shared_preload_libraries = '';
Important
If the
shared_preload_libraries
parameter includes other modules, specify them all for theALTER SYSTEM SET
command to keep using them. -
Restart the
postgresql
instance to apply the changes. The following command restarts PostgreSQL 15. Replace the version value with the one you are using.- On Debian and Ubuntu:
$ sudo systemctl restart postgresql.service
- On Red Hat Enterprise Linux and CentOS:
$ sudo systemctl restart postgresql-15
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.