skillfed

dagster-postgres

A Dagster integration for postgres

dagster-postgres v0.29.17 11.7M downloads/30d#1,370 on PyPI15,996
Permissive license Apache-2.0 Active released

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-postgres

uv

uv add dagster-postgres

poetry

poetry add dagster-postgres

Installing 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

dagster postgres integrationpostgresql data pipeline storagedagster database backendpostgres asset storagedagster run state persistencepostgresql orchestration storage
data-orchestrationpostgres-integrationstate-management

More Distributed Computing packages