Skip to main content

Overview

AsyncPostgresStorage provides an asynchronous PostgreSQL-based storage backend using SQLAlchemy with asyncpg. Ideal for production deployments, multi-node systems, and applications requiring ACID compliance with async support.

Install

Install the PostgreSQL storage optional dependency group:

Basic Usage

Parameters

Connection pool is automatically configured with pool_pre_ping=True and pool_recycle=3600 for robust connection handling.