Add config.query_timeout for query()
client.query('select pg_sleep(10)', {query_timeout: 5})
.then(...)
.catch(error => { e.message == 'Query read timeout' })
Solve #2652
thanks for the PR! Could you rebase on current master as I've re-enabled CI (travis ci kept breaking). And then if you could please write a quick integration test for this so we can be sure it will continue to work in the future!
Hi, thanks for reply, I'm afraid I don't have time to bring this PR to the right shape
Feel free to continue where I left
Applied to lastest master https://github.com/Paxa/node-postgres/commit/03630e1a212518bfe0c751472cdd80f3fd7aa741
@brianc What's needed for this to be released?
Apologies. Been crazy spinning down my current job...I'll try to get this released today or tomorrow. Going forward, after a few weeks of vacation, you can expect much more prompt responses here.