Skip to main content

What it flags

A chained node-postgres pool checkout loses the client reference after calling query(), so the client cannot be released. Loadwise offers a pool.query() rewrite only for a fixed, session-independent statement such as SELECT 1. For session-bound work, keep the same checked-out client through the operation and its cleanup. Release a clean client in finally and discard it if cleanup fails.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: