pgroll vs Umzug
pgroll
pgroll.comUmzug
github.comSide by side
| Figure | pgroll | Umzug |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 2 | 1 |
| Spec score · Database Migration Tools | 8.5 (#9) | 7.6 (#23) |
| Database support | PostgreSQL 14 and later; hosted and self-managed services | Database agnostic |
| License | Apache 2.0 open-source license | The public repository identifies the project license as MIT. |
| Product type | Open-source command-line migration tool for PostgreSQL | Framework-agnostic migration tool for Node |
| Purpose | pgroll is an open-source command-line tool for safe, reversible PostgreSQL schema migrations that keep multiple schema versions available simultaneously. | Umzug is a framework-agnostic migration tool for Node.js that runs and rolls back tasks. |
| Rollback | Instant rollback command is supported | Supports reverting one or multiple migrations |
Plans
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.