node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

pg-connection-string: Shouldn't idleTimeoutMillis be considered? For pool usage patterns?

Open deostroll opened this issue 1 year ago • 0 comments

https://github.com/brianc/node-postgres/blob/master/packages/pg-connection-string/index.js

👆 The code here is not setting anything with respect to idleTimeoutMillis. Other parameters such as user, password, ssl, etc are set.

Therefore when using connection string usage - what is the actual design? Should the developer pass the connectionString and idleTmeoutMillis together for pool configurations? Or should the developer set in the connectionString itself.

I don't see anything relating to idleTimeoutMillis here either: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS

Please advice.

deostroll avatar Jul 24 '24 04:07 deostroll