Open mpjunior92 opened 10 months ago
DB provider pointed me to this AWS doc:
Idle client connection A connection to an Aurora PostgreSQL DB instance is in idle in transaction state and is waiting for a client to send more data or issue a command. This state can lead to an increase in Client:ClientRead events.
Have you found a solution? We experience a similar problem.
Have you found a solution? We experience a similar problem.
Hi,
I am using
pgxpool
to manage DB connections to a PostgreSQL instance and have observed a very strange behavior after running a simple query on the DB:pgx
is not able to acquire a connection from the pool; it gets stuck while waiting for DB data to be sent (I left running for 2 hours and no connection was acquired). Here is the call stack collected usingpprof
:When debugging this, I assumed there was some kind of leak that prevented a connection to be acquired, but that does not seem to be the case since there are idle resources (see below). I confirmed with the DB provider that the connection is in
idle
state - info obtained frompg_stat_activity
.Pool config and stats:
General info:
pgx
version 5.5.2.I can reproduce this 100% against the DB my company uses; I haven't tested on a local PostgreSQL yet. Could you help on this? Maybe it is in fact a bug. Thank you.