dagster-postgres
A Dagster integration for postgres
What it is and what it does
dagster-postgres is an integration layer that allows Dagster—a cloud-native data pipeline orchestrator—to use PostgreSQL as its backing database for storing asset definitions, run history, event logs, and execution state. Rather than using Dagster's default in-memory or SQLite storage, this package lets you connect to a production PostgreSQL instance, making it suitable for multi-user environments, persistent storage across restarts, and integration with existing database infrastructure.
The package depends on dagster (the core orchestration framework) and psycopg2-binary (the PostgreSQL driver). It's designed for teams running Dagster in production who need reliable, scalable state management backed by a dedicated relational database. Installation is straightforward with low friction, and the package is actively maintained with no known security vulnerabilities.
Use it for:
- Store Dagster run history and asset lineage in a shared PostgreSQL database for multi-user team environments
- Persist pipeline state across application restarts without losing execution history or asset metadata
- Integrate Dagster with existing PostgreSQL infrastructure and monitoring tools already in place
- Enable audit trails and compliance reporting by centralizing all orchestration events in a queryable database
- Scale Dagster deployments beyond single-machine limits by offloading state to a dedicated database server
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects Dagster data pipelines to PostgreSQL for asset storage, state management, and run tracking.
Yes, if you are already using Dagster and need persistent, production-grade state storage. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Install only if you have a PostgreSQL instance available and require multi-user or persistent storage; Dagster's default storage is sufficient for local development.
Install
dagster-postgres on PyPI
pip
pip install dagster-postgresuv
uv add dagster-postgrespoetry
poetry add dagster-postgresInstalling dagster-postgres
Before you install
Low friction install with two runtime dependencies (dagster and psycopg2-binary). The package is actively maintained with a recent release and no known vulnerabilities.
License in practice
Apache 2.0 licensed, permissive terms allow commercial and private use with minimal restrictions.
Quickstart
pip install dagster-postgres
import dagster_postgres
from dagster import Definitions
# Configure PostgreSQL as Dagster's backend in your definitions
# See Dagster docs for storage configuration details
Requires Python 3.10 or later (up to 3.14). PostgreSQL server must be accessible and configured separately.
Verify before relying
- Specific PostgreSQL version compatibility requirements
- Whether this package handles schema migrations automatically or requires manual setup
- Performance characteristics for large-scale asset graphs or high-frequency runs
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — dagster, psycopg2-binary |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,677,987/month — #1,370 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dagster_postgres-0.29.17-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
dagsterDagster is a data pipeline orchestrator that…
permissive · top 5,000 on PyPI
dagster-cloud-cliCLI tool for managing and deploying Dagster…
permissive · top 5,000 on PyPI
dagster-webserverProvides a web UI for Dagster, a data pipeline…
permissive · top 5,000 on PyPI
dagster-dockerIntegrates Dagster data orchestration with…
permissive · top 5,000 on PyPI
dagster-dg-coredagster-dg-core provides the core orchestration…
permissive · top 5,000 on PyPI
dagster-rest-resourcesProvides REST API resource integrations for…
permissive · top 15,000 on PyPI
dagster-gcpProvides GCP-specific integrations for Dagster,…
permissive · top 5,000 on PyPI
dagster-graphqlProvides a GraphQL API interface for querying…
permissive · top 5,000 on PyPI
dagster-pysparkIntegrates PySpark with Dagster's data pipeline…
permissive · top 15,000 on PyPI
pipestatPipestat provides a standard API for reporting,…
permissive · top 15,000 on PyPI