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 7885000 commit e383b7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dialects/postgres/connection-manager.js
Expand Up @@ -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'
Expand Down

0 comments on commit e383b7d

Please sign in to comment.