Skip to content

Commit

Permalink
feat(postgres): add support for lock_timeout [sequelize#15345]
Browse files Browse the repository at this point in the history
please see sequelize#15345.
  • Loading branch information
wsuonto committed Nov 29, 2022
1 parent 43bca57 commit efc4815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dialects/postgres/connection-manager.ts
Expand Up @@ -93,6 +93,8 @@ export class PostgresConnectionManager extends AbstractConnectionManager<PgConne
'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',
Expand Down

0 comments on commit efc4815

Please sign in to comment.