node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

Question on timeout for queued/waiting queries

Open ashby2 opened this issue 3 years ago • 2 comments

Does connectionTimeoutMillis have any effect on queued queries? i.e., if a query sitting in the pending queue > connectionTimeoutMillis, does it get removed completely?

ashby2 avatar Feb 28 '22 15:02 ashby2

Based on the pg pool code here, it looks like items in the pending queue will be timed out, but would be great if someone could clarify my assumption. 🤔

ashby2 avatar Mar 01 '22 18:03 ashby2

Hi @brianc, thoughts on this?:

Does connectionTimeoutMillis have any effect on queued queries?

Appreciate your time and help!

ashby2 avatar Mar 02 '22 18:03 ashby2