LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.store.postgresbasePoolConfig
    Class●Since v2.0

    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
    Copy
    PoolConfig()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    min_sizeint
    max_sizeint | None
    kwargsdict

    Attributes

    attribute
    min_size: int

    Minimum number of connections maintained in the pool. Defaults to 1.

    attribute
    max_size: int | None

    Maximum number of connections allowed in the pool. None means unlimited.

    attribute
    kwargs: dict

    Additional connection arguments passed to each connection in the pool.

    Default kwargs set automatically:

    • autocommit: True
    • prepare_threshold: 0
    • row_factory: dict_row
    View source on GitHub