Skip to content

Set timeout for 1 query when using pg-pool #2652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Paxa opened this issue Nov 10, 2021 · 0 comments
Open

Set timeout for 1 query when using pg-pool #2652

Paxa opened this issue Nov 10, 2021 · 0 comments

Comments

@Paxa
Copy link

Paxa commented Nov 10, 2021

Is it possible to set timeout for 1 query when using pg-pool?

As I see here it only check this.connectionParameters.query_timeout
https://github.com/brianc/node-postgres/blob/master/packages/pg/lib/client.js#L513

And if I use pool.query(...) I can't modify connectionParameters object only for 1 query

btw what is a meaning of if (typeof config.submit === 'function') (line 506)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant