Skip to main content

What it flags

LISTEN through pg.Pool.query() or an ordinary release of a visible local checkout that is still subscribed. PostgreSQL registers the connection that executes LISTEN, and notifications are delivered to that connection.

How to review or fix

Retain one checked-out client for the listener’s lifetime. Unsubscribe on that client before handing it back to the pool. Discard the connection when cleanup fails. Publishing with NOTIFY works through a transient checkout.

Configuration

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