Skip to content

Commit 8eaa130

Browse files
author
Oleg Tselebrovskiy
committed
README fix
Add a recommendation for 'pg_stat_statements' and 'pg_wait_sampling' order in shared_preload_libraries
1 parent 06d9025 commit 8eaa130

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ The module must be loaded by adding `pg_wait_sampling` to
1818
shared memory and launches background worker. This means that a server restart
1919
is needed to add or remove the module.
2020

21+
When used with `pg_stat_statements` it is recommended to put `pg_stat_statements`
22+
before `pg_wait_sampling` in `shared_preload_libraries` so queryIds of
23+
utility statements are not rewritten by the former.
24+
2125
When `pg_wait_sampling` is enabled, it collects two kinds of statistics.
2226

2327
* History of waits events. It's implemented as in-memory ring buffer where

0 commit comments

Comments
 (0)