Skip to content

Commit

Permalink
remove unnecessary config steps
Browse files Browse the repository at this point in the history
  • Loading branch information
piano35-edb committed May 17, 2024
1 parent d91c855 commit 4ceab50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
24 changes: 2 additions & 22 deletions advocacy_docs/pg_extensions/system_stats/configuring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,11 @@
title: Configuring system_stats
navTitle: Configuring
---

1. Add `system_stats` to the `shared_preload_libraries` parameter:

```ini
shared_preload_libraries = 'system_stats'
```

!!! Note
If `shared_preload_libraries` has other extensions, then you can add `system_stats` to the list. The order doesn't matter.
!!!

1. Add these changes to `postgresql.conf`:

```shell
wal_level = logical
max_replication_slots = 1 # ... or add 1 to the current value.
```

1. Restart Postgres.

1. Create the `system_stats` extension in your database:

```shell
CREATE EXTENSION system_stats;
```
!!! Note
When upgrading a database cluster with `system_stats` installed (either using `pg_dumpall`/`pg_restore` or `pg_upgrade`), make sure that the new cluster has `system_stats` in `shared_preload_libraries` before you upgrade. Otherwise the upgrade fails.

No other configuration steps are required.

9 changes: 1 addition & 8 deletions advocacy_docs/pg_extensions/wal2json/configuring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ navTitle: Configuring

```shell
wal_level = logical
#
# these parameters only need to set in versions 9.4, 9.5 and 9.6
# default values are ok in version 10 or later
#
max_replication_slots = 10
max_wal_senders = 10
```

!!! Note
When upgrading a database cluster with `wal2json` installed (either using `pg_dumpall`/`pg_restore` or `pg_upgrade`), make sure that the new cluster has `wal2json` in `shared_preload_libraries` before you upgrade. Otherwise the upgrade fails.
No other configuration steps are required.

0 comments on commit 4ceab50

Please sign in to comment.