Skip to content

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

@Paxa

Description

@Paxa

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions