langgraph-checkpoint-postgres
Library with a Postgres implementation of LangGraph checkpoint saver.
Decision gist · record as of 2026-08-14
Yes, if you are building LangGraph applications that require durable state persistence. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. Install it when you need Postgres-backed checkpoints for production workflows; skip it if you only need in-memory state or are using a different checkpoint backend.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10 and a running Postgres database.
- When manually creating connections, must pass autocommit=True and row_factory=dict_row to psycopg; omitting these causes TypeError during checkpoint operations.
- Low friction install with a pure-Python wheel and four straightforward runtime dependencies.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 39,690 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,916,243 downloads/mo, #1,682 on PyPI
Alternatives
Verify before relying
from langgraph.checkpoint.postgres import PostgresSaver
DB_URI = "postgres://user:pass@localhost:5432/db?sslmode=disable"
with PostgresSaver.from_conn_string(DB_URI) as checkpointer:
checkpointer.setup()
checkpointer.put({"configurable": {"thread_id": "1"}}, checkpoint_data, {}, {})- Performance characteristics and scalability limits for high-volume checkpoint operations.
- Whether msgpack deserialization restrictions (LANGGRAPH_STRICT_MSGPACK) are enforced by default or require explicit configuration.
- Compatibility with specific Postgres versions or deployment environments (cloud-hosted, self-managed).
What it is and what it does
This package integrates Postgres as a durable backend for LangGraph's checkpoint system, allowing you to persist the state of long-running workflows and agents across restarts and failures. It provides both synchronous (PostgresSaver) and asynchronous (AsyncPostgresSaver) implementations that store and retrieve checkpoint data—including channel values, versions, and execution history—directly in Postgres tables.
The package depends on psycopg (Psycopg 3) for database connectivity, orjson for efficient serialization, and langgraph-checkpoint for the checkpoint interface contract. Setup requires calling .setup() once to create the necessary tables, and subsequent operations use simple put/get/list methods to manage checkpoints. The documentation emphasizes security: you should set LANGGRAPH_STRICT_MSGPACK=true or provide an explicit allowed_msgpack_modules list to prevent code execution if the database is compromised.
Use it for
- Store agent execution state in Postgres so multi-step workflows survive application restarts or crashes.
- Implement resumable LLM workflows where you can pause, inspect, and resume from any checkpoint.
- Build multi-tenant systems where each tenant's workflow state is isolated and persisted in a shared Postgres instance.
- Enable async workflows with AsyncPostgresSaver for non-blocking checkpoint operations in high-concurrency applications.
- Audit and replay workflow execution by querying checkpoint history from Postgres.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building LangGraph applications that require durable state persistence.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. Install it when you need Postgres-backed checkpoints for production workflows; skip it if you only need in-memory state or are using a different checkpoint backend.
Install
langgraph-checkpoint-postgres on PyPI
Before you install
Low friction install with a pure-Python wheel and four straightforward runtime dependencies. The package is actively maintained with a recent release and no known vulnerabilities.
Requires Python >=3.10 and a running Postgres database. When manually creating connections, must pass autocommit=True and row_factory=dict_row to psycopg; omitting these causes TypeError during checkpoint operations.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.
Quickstart
from langgraph.checkpoint.postgres import PostgresSaver
DB_URI = "postgres://user:pass@localhost:5432/db?sslmode=disable"
with PostgresSaver.from_conn_string(DB_URI) as checkpointer:
checkpointer.setup()
checkpointer.put({"configurable": {"thread_id": "1"}}, checkpoint_data, {}, {})
Verify before relying
- Performance characteristics and scalability limits for high-volume checkpoint operations.
- Whether msgpack deserialization restrictions (LANGGRAPH_STRICT_MSGPACK) are enforced by default or require explicit configuration.
- Compatibility with specific Postgres versions or deployment environments (cloud-hosted, self-managed).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packageslanggraph-checkpointorjsonpsycopg-poolpsycopg |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,916,243 / month, #1,682 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: langgraph_checkpoint_postgres-3.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langgraph postgres checkpoint storage”
- langgraph-checkpoint-postgresProvides a Postgres-backed checkpoint saver for LangGraph, enabling…
- langgraph-checkpoint-sqliteProvides a SQLite-backed checkpoint saver for LangGraph, enabling…
- langgraph-checkpoint-awsProvides AWS-based persistence backends for LangGraph agents,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also langgraph-checkpoint · langgraph-checkpoint-sqlite · langgraph-checkpoint-mongodb · langgraph-checkpoint-aws · langgraph-checkpoint-redis · langgraph · langgraph-cli · langgraph-supervisor · llama-index-storage-docstore-postgres · dbos