From e81200e272d3bfef15bbd90653e7dcff7ab8fc47 Mon Sep 17 00:00:00 2001 From: Ivan Kuplevich Date: Sun, 11 Feb 2024 18:51:59 +0100 Subject: [PATCH] feat(postgres): support connectionTimeoutMillis dialectOption (#14119) --- src/dialects/postgres/connection-manager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialects/postgres/connection-manager.js b/src/dialects/postgres/connection-manager.js index 46b4b43ee8c6..030ccbe9fdbb 100644 --- a/src/dialects/postgres/connection-manager.js +++ b/src/dialects/postgres/connection-manager.js @@ -117,6 +117,8 @@ class ConnectionManager extends AbstractConnectionManager { 'statement_timeout', // Times out queries after a set time in milliseconds in client end, query would be still running in database end. 'query_timeout', + // Number of milliseconds to wait for connection, default is no timeout. + 'connectionTimeoutMillis', // 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', // Maximum wait time for lock requests in milliseconds. Added in pg v8.8.0.