From e383b7dc50a2950511f21b6b169c603a3b6aa3df Mon Sep 17 00:00:00 2001 From: Markus Suonto Date: Mon, 28 Nov 2022 14:46:36 +0200 Subject: [PATCH] feat(postgres): add support for lock_timeout [#15345] please see https://github.com/sequelize/sequelize/issues/15345. --- 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'