Skip to content

Commit

Permalink
feat: postgres connection option 'statement_timeout' (#8342)
Browse files Browse the repository at this point in the history
  • Loading branch information
amasad authored and sushantdhiman committed Sep 21, 2017
1 parent fcac021 commit 30f0774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dialects/postgres/connection-manager.js
Expand Up @@ -77,7 +77,9 @@ class ConnectionManager extends AbstractConnectionManager {
'binary',
// This should help with backends incorrectly considering idle clients to be dead and prematurely disconnecting them.
// this feature has been added in pg module v6.0.0, check pg/CHANGELOG.md
'keepAlive'
'keepAlive',
// Times out queries after a set time in milliseconds. Added in pg v7.3
'statement_timeout'
]));
}

Expand Down

0 comments on commit 30f0774

Please sign in to comment.