Feature request: Configurable PostgreSQL schema for langgraph-checkpoint-postgres (parity with LangGraphJS)

Summary:
Add an explicit way to target a non-public PostgreSQL schema for checkpoint tables and queries in the Python langgraph-checkpoint-postgres package (PostgresSaver / AsyncPostgresSaver), similar to langgraph JS checkpointer implementation, PR feat(checkpoint-postgres): Add support for providing a custom schema during initialization by nick-w-nick · Pull Request #838 · langchain-ai/langgraphjs · GitHub

Motivation / problem:
Today, migrations and DML use unqualified table names (checkpoints, checkpoint_blobs, checkpoint_writes, checkpoint_migrations). Enterprise deployments often require isolated schemas per service or tenant. Currently we can achieve it through search_path, but it needs careful design of handling connection through pool which can leads to error and can cause data leakage.

It’s a good feature request, would recommend you open it on official repo of Langgraph: GitHub - langchain-ai/langgraph: Build resilient language agents as graphs. · GitHub

Created the feature request Feature request: Configurable PostgreSQL schema for langgraph-checkpoint-postgres (parity with LangGraphJS) · Issue #7345 · langchain-ai/langgraph · GitHub

1 Like