Pgroll: zero-downtime, undoable, schema migrations for Postgres

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. pgroll

    PostgreSQL zero-downtime migrations made easy

    An example would make this more concrete.

    This migration[0] adds a CHECK constraint to a column.

    When the migration is started, a new column with the constraint is created and values from the old column are backfilled using the 'up' SQL from the migration. The 'up' SQL rewrites values that don't meet the constraint so that they do.

    The same 'up' SQL is used 'on the fly' as data is written to the old schema by applications - the 'up' SQL is used (as part of a trigger) to copy data into the new column, rewriting as necessary to ensure the constraint on the new column is met.

    As the sibling comment makes clear, it is currently the migration author's responsibility to ensure that the 'up' SQL really does rewrite values so that they meet the constraint.

    [0] - https://github.com/xataio/pgroll/blob/main/examples/22_add_c...

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. reshape

    An easy-to-use, zero-downtime schema migration tool for Postgres

    Cool stuff! Do you have any thoughts about how this compares to https://github.com/fabianlindfors/reshape?

  4. pg-osc

    Easy CLI tool for making zero downtime schema changes and backfills in PostgreSQL

    Great to see more innovation in this space! How does this compare to?

    https://github.com/shayonj/pg-osc

  5. quantumdb

    Zero-downtime schema evolution for PostgreSQL

    Very cool! Congratulations to the authors on the release! I'm the author of a similar (zero-downtime migration) tool for PG called QuantumDB[0]. It was the first (to my knowledge at least) tool to support foreign keys, by creating table copies (keeping those in sync using triggers), and exposing multiple schemas through a custom database driver. I never got to production-ready version unfortunately, but I'm happy this one did. I'm seeing a lot of familiar concepts, and it looks well thought out.

    [0] https://github.com/quantumdb/quantumdb

  6. atlas

    Manage your database schema as code (by ariga)

    Check out: https://github.com/ariga/atlas

    (I'm one of the authors of this project).

  7. migra

    Like diff but for PostgreSQL schemas

    Forr postgres, how does the schema diffing aspect compare to migra?

    https://github.com/djrobstep/migra

    I'm asking because, although migra is excellent and there are multiple migrations tools based on it (at least https://github.com/bikeshedder/tusker and https://github.com/blainehansen/postgres_migrator), issues are piling up but development seem to be slowing down

  8. tusker

    PostgreSQL migration management tool

    Forr postgres, how does the schema diffing aspect compare to migra?

    https://github.com/djrobstep/migra

    I'm asking because, although migra is excellent and there are multiple migrations tools based on it (at least https://github.com/bikeshedder/tusker and https://github.com/blainehansen/postgres_migrator), issues are piling up but development seem to be slowing down

  9. postgres_migrator

    A postgres migration generator and runner that uses raw declarative sql.

    Forr postgres, how does the schema diffing aspect compare to migra?

    https://github.com/djrobstep/migra

    I'm asking because, although migra is excellent and there are multiple migrations tools based on it (at least https://github.com/bikeshedder/tusker and https://github.com/blainehansen/postgres_migrator), issues are piling up but development seem to be slowing down

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Pgroll: PostgreSQL zero-downtime migrations made easy

    1 project | news.ycombinator.com | 22 Sep 2024
  • pgroll update 0.6.0

    1 project | dev.to | 5 Aug 2024
  • Introducing multi-version schema migrations

    1 project | dev.to | 27 Jul 2024
  • Pgroll: Zero-downtime, reversible, schema migrations for PostgreSQL

    1 project | news.ycombinator.com | 28 May 2024
  • Revolutionizing PostgreSQL Schema Changes with pg-osc

    1 project | news.ycombinator.com | 18 Feb 2024