Skip to content
SPECIFICTION
Get listed

pgroll vs sqldef

pgroll

pgroll.com

sqldef

sqldef.github.io

Side by side

Figurepgrollsqldef
Price fromFree—
Free planYes—
Free trial——
Open sourceYes—
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
Self-hostedYesYes
Plans published20
Spec score · Database Migration Tools8.5 (#7)7.2 (#26)
LicenseThe repository is licensed under Apache License 2.0.The sqldef source files are distributed under the MIT License, while the parser is distributed under Apache License 2.0.
PlatformsPrebuilt binaries are available for Linux, macOS, and Windows; installation is also documented through Homebrew and from source.The releases page lists downloadable binaries for Windows, macOS (Darwin), and Linux.
Purposepgroll is an open-source command-line tool for safe, reversible PostgreSQL schema migrations that keep multiple schema versions available simultaneously.sqldef is a CLI tool for diffing SQL schemas and managing RDBMS migrations with regular SQL DDLs.
SupportUsers are directed to GitHub issues, GitHub discussions and Discord for assistance.The project invites feature requests through pull requests or GitHub Discussions.

Plans

pgroll

  • Open sourceFree
  • Open-sourceFree

pgroll pricing →

sqldef

No plans published.

sqldef pricing →

In their own words

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

sqldef

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

Visit sqldef.github.io