Skip to content

Commit 2a762ab

Browse files
committed
Adding support for pg and pge to Wait States
1 parent acd0103 commit 2a762ab

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

advocacy_docs/pg_extensions/wait_states/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: EDB Wait States
33
indexCards: none
44
directoryDefaults:
55
product: EDB Wait States
6-
6+
navigation:
7+
- installing
8+
- using
79
---
810

911
EDB Wait States is a tool for analyzing performance and tuning by allowing the collection and querying of wait event data. Wait events, introduced in PostgreSQL 9.6, are recorded alongside other session activity and provide a snapshot of whether a session is waiting for I/O, CPU, IPC, locks, or timeouts. Snapshots of this information are gathered by the EDB Wait States background worker (BGW) at regular intervals.

advocacy_docs/pg_extensions/wait_states/installing.mdx

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,38 @@ navTitle: Installing
77

88
To install EDB Wait States on a Linux system:
99

10-
1. Install EDB Wait States with the `edb-asxx-server-edb_wait_states` RPM package, where `xx` is the EDB Postgres Advanced Server version number.
10+
1. Enter the following command:
1111

12+
```shell
13+
sudo <package-manager> -y install <install-command>
14+
```
15+
16+
Where:
17+
18+
- `<package-manager>`is the package manager used with your operating system:
19+
20+
| Package manager | Operating system |
21+
| --------------- | -------------------------------- |
22+
| dnf | RHEL 8/9 and derivatives |
23+
| yum | RHEL 7 and derivatives, CentOS 7 |
24+
| zypper | SLES |
25+
| apt-get | Debian and derivatives |
26+
27+
- `<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.
28+
29+
| Type of Postgres distribution | Install command |
30+
| ----------------------------- | ------------------------------------------- |
31+
| PostgreSQL | postgresql`<version>`-edb_wait_states |
32+
| EDB Postgres Advanced Server | edb-as`<version>`-edb_wait_states |
33+
| EDB Postgres Extended Server | edb-postgresextended`<version>`-wait-states |
34+
35+
36+
For example, to install EDB Wait States for EDB Postgres Advanced Server 16 on a RHEL 9 platform:
37+
38+
```shell
39+
sudo dnf -y install edb-as16-edb_wait-states
40+
```
41+
1242
1. To launch the worker, register it in the `postgresql.conf` file using the `shared_preload_libraries` parameter. For example:
1343

1444
```ini
@@ -25,6 +55,7 @@ To install EDB Wait States on a Linux system:
2555

2656
1. To terminate the EDB Wait States worker, remove `$libdir/edb_wait_states` from the `shared_preload_libraries` parameter, and restart the database server.
2757

58+
2859
## On Windows
2960

3061
To install EDB Wait States on a Windows system:
@@ -63,4 +94,6 @@ To uninstall EDB Wait States:
6394

6495
1. Use the `DROP EXTENSION` command to drop the `edb_wait_states` extension.
6596
1. Modify the `postgresql.conf` file, removing `$libdir/edb_wait_states.dll` from the `shared_preload_libraries` parameter.
66-
1. To apply your changes, restart the database server.
97+
1. To apply your changes, restart the database server.
98+
99+

0 commit comments

Comments
 (0)