Skip to content

Commit

Permalink
feat(postgres): idle_in_transaction_session_timeout connection option
Browse files Browse the repository at this point in the history
  • Loading branch information
aheuermann committed Dec 29, 2019
1 parent f3110e3 commit 7900781
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dialects/postgres/connection-manager.js
Expand Up @@ -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'
]));
}

Expand Down

0 comments on commit 7900781

Please sign in to comment.