You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advocacy_docs/pg_extensions/wait_states/index.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ title: EDB Wait States
3
3
indexCards: none
4
4
directoryDefaults:
5
5
product: EDB Wait States
6
-
6
+
navigation:
7
+
- installing
8
+
- using
7
9
---
8
10
9
11
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.
-`<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 |
| 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
+
12
42
1. To launch the worker, register it in the `postgresql.conf` file using the `shared_preload_libraries` parameter. For example:
13
43
14
44
```ini
@@ -25,6 +55,7 @@ To install EDB Wait States on a Linux system:
25
55
26
56
1. To terminate the EDB Wait States worker, remove `$libdir/edb_wait_states` from the `shared_preload_libraries` parameter, and restart the database server.
27
57
58
+
28
59
## On Windows
29
60
30
61
To install EDB Wait States on a Windows system:
@@ -63,4 +94,6 @@ To uninstall EDB Wait States:
63
94
64
95
1. Use the `DROP EXTENSION` command to drop the `edb_wait_states` extension.
65
96
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.
0 commit comments