Skip to content

Commit

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

Co-authored-by: Markus Suonto <markus.suonto@withsecure.com>
Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 29, 2022
1 parent a92d2c8 commit 5e7cbe6
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 5e7cbe6

Please sign in to comment.