Skip to content

Commit

Permalink
README fix
Browse files Browse the repository at this point in the history
Add a recommendation for 'pg_stat_statements' and 'pg_wait_sampling' order
in shared_preload_libraries
  • Loading branch information
Oleg Tselebrovskiy committed Jul 5, 2024
1 parent 06d9025 commit 8eaa130
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ The module must be loaded by adding `pg_wait_sampling` to
shared memory and launches background worker. This means that a server restart
is needed to add or remove the module.

When used with `pg_stat_statements` it is recommended to put `pg_stat_statements`
before `pg_wait_sampling` in `shared_preload_libraries` so queryIds of
utility statements are not rewritten by the former.

When `pg_wait_sampling` is enabled, it collects two kinds of statistics.

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

0 comments on commit 8eaa130

Please sign in to comment.