File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,17 @@ config = {
26
26
// maximum number of clients the pool should contain
27
27
// by default this is set to 10.
28
28
max?: int,
29
+
30
+ // Default behavior is the pool will keep clients open & connected to the backend
31
+ // until idleTimeoutMillis expire for each client and node will maintain a ref
32
+ // to the socket on the client, keeping the event loop alive until all clients are closed
33
+ // after being idle or the pool is manually shutdown with `pool.end()`.
34
+ //
35
+ // Setting `allowExitOnIdle: true` in the config will allow the node event loop to exit
36
+ // as soon as all clients in the pool are idle, even if their socket is still open
37
+ // to the postgres server. This can be handy in scripts & tests
38
+ // where you don't want to wait for your clients to go idle before your process exits.
39
+ allowExitOnIdle?: boolean
29
40
}
30
41
```
31
42
You can’t perform that action at this time.
0 commit comments