diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-01-06 18:28:42 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-01-06 18:28:52 -0500 |
commit | 9877374bef76ef03923f6aa8b955f2dbcbe6c2c7 (patch) | |
tree | 9255038d282a07de135530578d5b365a4aaa18dd /src/backend/storage | |
parent | 09cf1d52267644cdbdb734294012cf1228745aaa (diff) | |
download | postgresql-9877374bef76ef03923f6aa8b955f2dbcbe6c2c7.tar.gz postgresql-9877374bef76ef03923f6aa8b955f2dbcbe6c2c7.zip |
Add idle_session_timeout.
This GUC variable works much like idle_in_transaction_session_timeout,
in that it kills sessions that have waited too long for a new client
query. But it applies when we're not in a transaction, rather than
when we are.
Li Japin, reviewed by David Johnston and Hayato Kuroda, some
fixes by me
Discussion: https://postgr.es/m/763A0689-F189-459E-946F-F0EC4458980B@hotmail.com
Diffstat (limited to 'src/backend/storage')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 9b6aa2fe0de..0366a7cc004 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -61,6 +61,7 @@ int DeadlockTimeout = 1000; int StatementTimeout = 0; int LockTimeout = 0; int IdleInTransactionSessionTimeout = 0; +int IdleSessionTimeout = 0; bool log_lock_waits = false; /* Pointer to this process's PGPROC struct, if any */ |