From 94beace4ca666765ec9c84a3f7ef0e826e09699d Mon Sep 17 00:00:00 2001 From: Markus Suonto Date: Tue, 29 Nov 2022 13:08:15 +0200 Subject: [PATCH] feat(postgres): add support for lock_timeout [#15345] (#15355) please see https://github.com/sequelize/sequelize/issues/15345. Co-authored-by: Markus Suonto --- 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 1b75b133f074..6b8f30a0b7b1 100644 --- a/src/dialects/postgres/connection-manager.js +++ b/src/dialects/postgres/connection-manager.js @@ -119,6 +119,8 @@ class ConnectionManager extends AbstractConnectionManager { 'query_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', + // Maximum wait time for lock requests in milliseconds. Added in pg v8.8.0. + 'lock_timeout', // Postgres allows additional session variables to be configured in the connection string in the `options` param. // see [https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNECT-OPTIONS] 'options'