Add exclude-listeners parameter

This commit is contained in:
Julien Riou 2018-07-08 23:48:48 +02:00
commit c0382eaad9
No known key found for this signature in database
GPG key ID: BA3E15176E45E85D
10 changed files with 47 additions and 22 deletions

View file

@ -90,5 +90,9 @@ When include users list or regex is set, `pgterminate` will focus on included us
When exclude users list or regex is set and no include option is set, `pgterminate` will terminate all sessions except excluded users.
# Listeners
LISTEN queries are asynchronous. Sessions are set to "idle" state even if they are waiting for messages to be sent to the queue. `pgterminate` can exclude sessions in that state by looking at the last known query starting with "LISTEN", with the `exclude-listeners` parameter.
# License
`pgterminate` is released under [The Unlicense](LICENSE) license. Code is under public domain.