Fix 'sorry, too many clients already' and hanging queries in Node pg
#postgres #javascript #programming #webdev 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: after 8 seconds the query was…