Skip to content

Commit 34e9e47

Browse files
author
Alexander Korotkov
committedOct 27, 2016
Mention that pg_wait_sampling should be in shared_preload_libraries.
1 parent cf5449b commit 34e9e47

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ PostgreSQL 9.6+ provides an information about current wait event of particular
88
process. However, in order to gather descriptive statistics of server
99
behavior user have to sample current wait event multiple times.
1010
pg\_wait\_sampling is an extension for collecting sampling statistics of wait
11-
events. It collects two kinds of statistics.
11+
events.
12+
13+
The module must be loaded by adding pg\_wait\_sampling to
14+
shared\_preload\_libraries in postgresql.conf, because it requires additional
15+
shared memory and launches background worker. This means that a server restart
16+
is needed to add or remove the module.
17+
18+
When pg\_wait\_sampling is enabled, it collects two kinds of statistics.
1219

1320
* History of waits events. It's implemented as in-memory ring buffer where
1421
samples of each process wait events are written with given (configurable)

0 commit comments

Comments
 (0)