Skip to content

Conversation

@Georgedyatmsk1405
Copy link

Description: This PR adds support for asyncpg as an alternative database driver for Postgres checkpoints, providing users with choice between psycopg and asyncpg based on their performance needs and licensing preferences. The implementation maintains full backward compatibility with existing psycopg-based code while offering a new asyncpg implementation with identical API.

Key changes:

  • Added new AsyncPgPostgresSaver class using asyncpg in langgraph/checkpoint/postgres_asyncpg/
  • Added optional dependencies for asyncpg in pyproject.toml
  • Comprehensive test coverage for the new asyncpg implementation
  • All existing tests continue to pass with psycopg
  • No breaking changes to existing APIs
  • AsyncPgPostgresSaver works without installing psycopg

Issue: N/A (feature enhancement)

Dependencies:

  • Added asyncpg>=0.29.0 as optional dependency
  • All existing dependencies remain unchanged

@vercel
Copy link

vercel bot commented Nov 15, 2025

Someone is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant