Skip to content
SPECIFICTION
Get listed

Alembic vs pgroll

Alembic

alembic.sqlalchemy.org

pgroll

pgroll.com

Side by side

FigureAlembicpgroll
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
Windows—Yes
macOS—Yes
Linux—Yes
Self-hostedYesYes
Plans published12
Spec score · Database Migration Tools7.9 (#12)8.5 (#7)
LicenseThe repository license grants permission to use, copy, modify, distribute, and sell the software, subject to its stated conditions.The repository is licensed under Apache License 2.0.
SupportThe project directs users to GitHub Discussions for bug and feature discussion and its GitHub issue tracker for bug reports and feature requests.Users are directed to GitHub issues, GitHub discussions and Discord for assistance.
What it doesAlembic is a lightweight database migration tool for use with SQLAlchemy and provides tools to create, manage, and invoke relational database change scripts.pgroll is a command-line tool for safe, reversible PostgreSQL schema migrations designed to avoid application downtime.

Plans

Alembic

  • AlembicFree

Alembic pricing →

pgroll

  • Open sourceFree
  • Open-sourceFree

pgroll pricing →

In their own words

Alembic

Alembic has no write-up on Specifiction yet; its figures are above.

Visit alembic.sqlalchemy.org

pgroll

pgroll is an open-source command-line tool for PostgreSQL schema migrations that keeps old and new schema versions available while applications move between them. Its expand/contract workflow lets clients choose a version through PostgreSQL's search_path. The project describes migrations as zero-downtime and says it applies changes without locking the database; it can also backfill columns automatically when needed. For breaking changes, pgroll builds virtual schemas from views over physical tables and uses triggers to carry writes between old and new columns. Active migrations can be rolled back to the previous schema version. It supports PostgreSQL 14 and later, including RDS and Aurora, and is available for Linux, macOS, and Windows or self-hosting. It can convert SQL generated by ORMs, with examples for Alembic, Django, and Drizzle, though manual data migrations and SQL consolidation may be needed. On PostgreSQL 14, its versioned views do not respect row-level security policies, which can make it a poor choice for RLS users on that version. The project is licensed under Apache License 2.0.

Visit pgroll.com