Skip to content

Commit

Permalink
Remove redundant pgsm unistallation step from readme (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov authored Apr 26, 2024
1 parent 288ec63 commit a88c23a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,27 +248,21 @@ 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 = '';
```

**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:

Expand Down

0 comments on commit a88c23a

Please sign in to comment.