# PoolConfig

> **Class** in `langgraph.store.postgres`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store.postgres/base/PoolConfig)

Connection pool settings for PostgreSQL connections.

Controls connection lifecycle and resource utilization:

- Small pools (1-5) suit low-concurrency workloads
- Larger pools handle concurrent requests but consume more resources
- Setting max_size prevents resource exhaustion under load

## Signature

```python
PoolConfig()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    min_size: int,
    max_size: int | None,
    kwargs: dict,
)
```

| Name | Type |
|------|------|
| `min_size` | `int` |
| `max_size` | `int \| None` |
| `kwargs` | `dict` |


## Properties

- `min_size`
- `max_size`
- `kwargs`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/398d6cc59d4cf81ab23c09f037e9f521c3fedcd6/libs/checkpoint-postgres/langgraph/store/postgres/base.py#L150)