Skip to content

Timeouts not applied correctly against Neon database #3604

@egoldschmidt

Description

@egoldschmidt

Setting idle_in_transaction_session_timeout, statement_timeout, and lock_timeout via pg pool config does not appear to work against Neon databases.

Screenshot 1 - params set locally against Postgres 16 in Docker container:

Image

Screenshot 2 - params set against Neon, both direct & pgbouncer:

Image

My methodology is simply to run await pool.query('SHOW lock_timeout');

Note that in screenshot 2 the lock timeout is zero. If I explicitly run SET lock_timeout = ... it works fine.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions