Npgsql:连接空闲生命周期是否会影响事务中空闲状态下的连接?

Npgsql: Does Connection Idle Lifetime affect Connections in the Idle In Transaction state?

如果超过连接空闲生命周期,"Idle in Transaction"状态的连接会被关闭,还是只会关闭"Idle"状态的连接?

在后台,连接空闲生命周期的 documentation 状态为:

The time (in seconds) to wait before closing idle connections in the pool if the count of all connections exceeds MinPoolSize. Since 3.1 only.

没有。 "idle in transaction" 的连接是由用户 in-use 连接的,从某种意义上说,它们不是闲置在连接池中等待某人分配它们。正如引用的文档所说,只有 "idle connections in the pool" 受到影响 - 如果它们在池中闲置,则它们无法进行交易。