MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Pool deactivates inactive connections without respect to min size #989

Closed khoben closed 1 year ago

khoben commented 1 year ago

Using a pool with max_inactive_connection_lifetime parameter releases connections without respect to min_size. I expect that the number of active connections should be maintained up to min_size, using the connection refresh mechanism when pool.min_size > pool.size.