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.