From a88c23a626ce778714b91801e460a2cda939d4b4 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Fri, 26 Apr 2024 11:11:41 +0200 Subject: [PATCH] Remove redundant pgsm unistallation step from readme (#462) --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ed123dd..2a248e0 100644 --- a/README.md +++ b/README.md @@ -248,19 +248,13 @@ make USE_PGXS=1 install To uninstall `pg_stat_monitor`, do the following: -1. Disable statistics collection. From the `psql` terminal, run the following command: - - ```sql - ALTER SYSTEM SET pg_stat_monitor.pgsm_enable = 0; - ``` - -2. Drop `pg_stat_monitor` extension: +1. Drop `pg_stat_monitor` extension: ```sql DROP EXTENSION pg_stat_monitor; ``` -3. Remove `pg_stat_monitor` from the `shared_preload_libraries` configuration parameter: +2. Remove `pg_stat_monitor` from the `shared_preload_libraries` configuration parameter: ```sql ALTER SYSTEM SET shared_preload_libraries = ''; @@ -268,7 +262,7 @@ To uninstall `pg_stat_monitor`, do the following: **Important**: If the `shared_preload_libraries` parameter includes other modules, specify them all for the `ALTER SYSTEM SET` command to keep using them. -4. Restart the `postgresql` instance to apply the changes. The following command restarts PostgreSQL 16. Replace the version value with the one you are using. +3. Restart the `postgresql` instance to apply the changes. The following command restarts PostgreSQL 16. Replace the version value with the one you are using. * On Debian and Ubuntu: