brianc / node-pg-pool

A connection pool for node-postgres
MIT License
180 stars 64 forks source link

Prevent requeuing a broken client #119

Open johanneswuerbach opened 5 years ago

johanneswuerbach commented 5 years ago

This is a request for comments, feedback welcome.

If a client is not queryable, the pool should prevent requeuing instead of strictly enforcing errors to be propagated back to it.

I feel this is better behaviour as otherwise a missing error passing will cause an invalid query to be constantly checked out, queries to error and client being re-added to the pool.