From Dev.to
Fix 'sorry, too many clients already' and hanging queries in Node pg
Ten requests leaked a connection in my Node service, and request number 11 never got an answer. No error, no log line, no timeout. I reproduced it with pg 8.23.1, Node 24.22.1 and PostgreSQL 17.12: af...
