I am looking for a case, to reduce idle connections on Postgres DB

I am looking for a case, to reduce idle connections on Postgres DB.

what property can I use for it ?
:connection_timeout or :pool_timeout.

Note** : It should timeout only idle connections.
and
connection timeout : does it timeout connections of idle only or both non idle/idle cases ?

Can you tell us what you’re trying to solve with this? Looks like an XY problem where you’re already fixated on a potential solution.

1 Like