From 790078105d24a01301eb4148d3885f409d137c4b Mon Sep 17 00:00:00 2001 From: Andrew Heuermann Date: Sat, 28 Dec 2019 12:55:03 -0600 Subject: [PATCH] feat(postgres): idle_in_transaction_session_timeout connection option --- lib/dialects/postgres/connection-manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dialects/postgres/connection-manager.js b/lib/dialects/postgres/connection-manager.js index 6e000b4603f2..8181595e63a2 100644 --- a/lib/dialects/postgres/connection-manager.js +++ b/lib/dialects/postgres/connection-manager.js @@ -114,7 +114,9 @@ class ConnectionManager extends AbstractConnectionManager { // this feature has been added in pg module v6.0.0, check pg/CHANGELOG.md 'keepAlive', // Times out queries after a set time in milliseconds. Added in pg v7.3 - 'statement_timeout' + 'statement_timeout', + // Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds. Added in pg v7.17.0 only supported in postgres >= 10 + 'idle_in_transaction_session_timeout' ])); }