From 0b58746938ec90ab1b115fe1f36d7b5fcba32ca6 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.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialects/postgres/connection-manager.ts b/src/dialects/postgres/connection-manager.ts index b27dae11276d..bb5b38733a63 100644 --- a/src/dialects/postgres/connection-manager.ts +++ b/src/dialects/postgres/connection-manager.ts @@ -93,6 +93,8 @@ export class PostgresConnectionManager extends AbstractConnectionManager= 10 'idle_in_transaction_session_timeout', + // Maximum wait time for lock requests. 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',