# pgroll

> Zero-downtime, reversible schema migrations for Postgres

Source: https://talira.ai/catalog/pgroll-gdjd3cnf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / database / migrations](https://talira.ai/categories/developer-tools/database/migrations)
- Platforms: linux, macos, windows[^2]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Xata](https://talira.ai/orgs/xata.md)

pgroll is an open source command-line tool from Xata for zero-downtime, reversible schema migrations on [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md). While a migration runs it serves the old and new schema versions at once, through views, so clients on either version keep working; it backfills columns when needed, takes no blocking locks, and rolls back instantly if something goes wrong. It works on existing schemas and any Postgres 14 or later service, including RDS and Aurora, and is a single Go binary for Linux, macOS and Windows.

## Links

- Website: https://pgroll.com/
- GitHub: https://github.com/xataio/pgroll
- Docs: https://pgroll.com/docs

## Problems it solves

- run Postgres schema migrations with zero downtime, keeping old and new schema versions working at once
- rename a column in Postgres without breaking the app version still running
- roll back a Postgres migration instantly

## Features

- Zero-downtime migrations without blocking locks
- Old and new schema versions served at once
- Automatic column backfills
- Instant rollback
- Works on existing schemas
- Postgres 14 or later, including RDS and Aurora

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.62, adoption 0.76, momentum 0.67, community 0.60, backing 0.30, extensibility 0.00.

- last commit 27 days ago
- 3 commits in the last 90 days
- latest release v0.16.3 2 months ago
- 6.6k GitHub stars
- 31 contributors
- backed by Xata

## Alternatives

- [Reshape](https://talira.ai/catalog/reshape-g9t6827t.md): An easy-to-use, zero-downtime schema migration tool for Postgres
- [pgschema](https://talira.ai/catalog/pgschema-zs6w461m.md): Terraform-style declarative schema migrations for PostgreSQL: dump, edit, plan, apply
- [sqldef](https://talira.ai/catalog/sqldef-0273hr6q.md): Idempotent schema management in plain SQL for MySQL, PostgreSQL, SQLite and SQL Server
- [Flyway](https://talira.ai/catalog/flyway-nkthpjjz.md): Versioned SQL database migrations for 50+ databases, open source with Redgate's enterprise editions
- [Atlas](https://talira.ai/catalog/atlas-vjsak9tx.md): Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases
- [golang-migrate](https://talira.ai/catalog/golang-migrate-pey7g13m.md): Database migrations as a CLI and Go library

## Sources

[^1]: https://github.com/xataio/pgroll/blob/main/LICENSE (checked 25 Nov 2026)
[^2]: https://github.com/xataio/pgroll#installation (checked 25 Nov 2026)
