Skip to content

Commit 808abec

Browse files
committed
Rewritten to break out Debian/Ubuntu
1 parent cd000c4 commit 808abec

File tree

1 file changed

+42
-12
lines changed

1 file changed

+42
-12
lines changed

advocacy_docs/pg_extensions/wait_states/installing.mdx

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Installing EDB Wait States
33
navTitle: Installing
44
---
55

6-
## On Linux
6+
## On all Linux systems except Debian and Ubuntu
77

8-
To install EDB Wait States on a Linux system:
8+
To install EDB Wait States on any Linux operating system except Debian or Ubuntu:
99

1010
1. Enter the following command:
1111

@@ -22,25 +22,57 @@ To install EDB Wait States on a Linux system:
2222
| dnf | RHEL 8/9 and derivatives |
2323
| yum | RHEL 7 and derivatives, CentOS 7 |
2424
| zypper | SLES |
25-
| apt-get | Debian and derivatives |
2625

2726
- `<install-command>` is the command required for the type of Postgres distribution you're using. In these commands `<version>` is the version of the Postgres distribution.
2827

29-
| Type of Postgres distribution | Install command |
30-
| --------------------------------------------------------------- | ------------------------------------------- |
31-
| PostgreSQL | postgresql`<version>`-edb_wait_states |
32-
| EDB Postgres Advanced Server (all OSs except Debian and Ubuntu) | edb-as`<version>`-server-edb_wait_states |
33-
| EDB Postgres Advanced Server (Debian and Ubuntu) | edb-as`<version>`-server-edb-wait-states |
34-
| EDB Postgres Extended Server | edb-postgresextended`<version>`-wait-states |
28+
| Type of Postgres distribution | Install command |
29+
| ----------------------------- | ------------------------------------------- |
30+
| PostgreSQL | postgresql`<version>`-edb-wait-states |
31+
| EDB Postgres Advanced Server | edb-as`<version>`-server-edb_wait_states |
32+
| EDB Postgres Extended Server | edb-postgresextended`<version>`-wait-states |
3533

3634

3735
For example, to install EDB Wait States for EDB Postgres Advanced Server 16 on a RHEL 9 platform:
3836

3937
```shell
4038
sudo dnf -y install edb-as16-server-edb_wait_states
4139
```
40+
41+
1. To launch the worker, register it in the `postgresql.conf` file using the `shared_preload_libraries` parameter. For example:
42+
43+
```ini
44+
shared_preload_libraries = '$libdir/edb_wait_states'
45+
```
46+
47+
1. Restart the database server. After a successful restart, the background worker begins collecting data.
48+
49+
1. To review the data, create the following extension:
50+
51+
```sql
52+
CREATE EXTENSION edb_wait_states;
53+
```
54+
55+
## On Debian and Ubuntu
4256

43-
Or, to install EDB Wait States for EDB Postgres Advanced Server 16 on a Debian 11 platform:
57+
To install EDB Wait States on Debian or Ubuntu:
58+
59+
1. Enter the following command:
60+
61+
```shell
62+
sudo apt-get -y install <install-command>
63+
```
64+
65+
Where:
66+
67+
`<install-command>` is the command required for the type of Postgres distribution you're using. In these commands `<version>` is the version of the Postgres distribution.
68+
69+
| Type of Postgres distribution | Install command |
70+
| ----------------------------- | -------------------------------------------- |
71+
| PostgreSQL | postgresql`<version>`-edb-wait-states |
72+
| EDB Postgres Advanced Server | edb-as`<version>`-server-edb-wait-states |
73+
| EDB Postgres Extended Server | edb-postgresextended-wait-states-`<version>` |
74+
75+
For example, to install EDB Wait States for EDB Postgres Advanced Server 16 on a Debian 11 platform:
4476

4577
```shell
4678
sudo apt-get -y install edb-as16-server-edb-wait-states
@@ -61,8 +93,6 @@ To install EDB Wait States on a Linux system:
6193
CREATE EXTENSION edb_wait_states;
6294
```
6395

64-
1. To terminate the EDB Wait States worker, remove `$libdir/edb_wait_states` from the `shared_preload_libraries` parameter, and restart the database server.
65-
6696

6797
## On Windows
6898

0 commit comments

Comments
 (0)