Commit graph

11 commits

Author SHA1 Message Date
fa7598cd11
chore: Fix typo in terminator test comment
Signed-off-by: Julien Riou <julien@riou.xyz>
2023-01-20 11:19:48 +01:00
9cff851021
fix: Filters from list and regex both match (#2)
Signed-off-by: Julien Riou <julien@riou.xyz>
2023-01-20 11:17:44 +01:00
8709ee542b
feat: Include and exclude databases
- Add filters to include and exclude strings
- Use filters to include and exclude sessions (user and databases supported)
- Add tests to filters and terminator

Signed-off-by: Julien Riou <julien@riou.xyz>
2023-01-18 18:32:33 +01:00
Nicolas Payart
0bb792a0ea Fix exclude-users-regex option
When a session User matches the exclude-users-regex pattern, it is
probably not found in exclude-users list.

The current OR condition makes the user filtered.

We expect a AND condition here (user not in exclude-users AND not in
exclude-users-regex)

Signed-off-by: Nicolas Payart <npayart@gmail.com>
2021-10-19 09:11:31 +02:00
Julien Riou
c0382eaad9
Add exclude-listeners parameter 2018-07-08 23:48:48 +02:00
Julien Riou
054ac3928e
Terminate idle sessions with cancel option enabled 2018-07-01 15:01:51 +02:00
Julien Riou
dcb07c225e
Add cancel option to terminate queries 2018-06-30 11:11:24 +02:00
Julien Riou
ef67682463
Add users filtering 2018-06-30 10:50:17 +02:00
Julien Riou
f0d3cd5bdf
Add logging control 2018-06-24 17:59:54 +02:00
Julien Riou
3a89201a94
Use state_change for measuring elapsed time 2018-06-11 21:02:24 +02:00
Julien Riou
565c45a8fc
Initial pgterminate code 2018-06-10 08:50:01 +02:00