Skip to content

Commit

Permalink
feat(postgres): add support for lock_timeout [#15345] (#15355)
Browse files Browse the repository at this point in the history
please see #15345.

Co-authored-by: Markus Suonto <markus.suonto@withsecure.com>
  • Loading branch information
Markus Suonto and wsuonto committed Nov 29, 2022
1 parent 7885000 commit 94beace
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 94beace

Please sign in to comment.