Add cancel option to terminate queries
This commit is contained in:
parent
750db87046
commit
dcb07c225e
5 changed files with 22 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ With `pgterminate`, you shouldn't be paged at night because some queries has loc
|
|||
# Highlights
|
||||
* `pgterminate` name is derived from `pg_terminate_backend` function, it terminates backends.
|
||||
* backends are called sessions in `pgterminate`.
|
||||
* use `cancel` option to terminate query instead of session.
|
||||
* `active` sessions are backends in `active` state for more than `active-timeout` seconds.
|
||||
* `idle` sessions are backends in `idle`, `idle in transaction` or `idle in transaction (abort)` state for more than `idle-timeout` seconds.
|
||||
* at least one of `active-timeout` and `idle-timeout` parameter is required, both can be used.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue