From 5e7cbe6485ced7c1a85c486b8c9be9d1f4240b01 Mon Sep 17 00:00:00 2001 From: Markus Suonto Date: Tue, 29 Nov 2022 13:08:28 +0200 Subject: [PATCH] feat(postgres): add support for lock_timeout [#15345] (#15347) please see https://github.com/sequelize/sequelize/issues/15345. Co-authored-by: Markus Suonto Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com> --- 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..6fcc5c1c4fae 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 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',