> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# pg-unreleased-checkout

> A chained pool checkout loses the client, so it is never released.

## 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:

```json theme={null}
{
  "rules": { "pg-unreleased-checkout": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.