Skip to content

Instantly share code, notes, and snippets.

@komuw
Last active February 18, 2025 05:08
Show Gist options
  • Save komuw/76b91b759c47a9d784498c5c6bd4700c to your computer and use it in GitHub Desktop.
Save komuw/76b91b759c47a9d784498c5c6bd4700c to your computer and use it in GitHub Desktop.
Zero downtime db -database- migrations and safe operations in postgresql
  1. Safe Operations For High Volume PostgreSQL: https://www.braintreepayments.com/blog/safe-operations-for-high-volume-postgresql

  2. Zero downtime database migrations: https://www.rainforestqa.com/blog/2014-06-27-zero-downtime-database-migrations

  3. Online migrations at scale: https://stripe.com/blog/online-migrations

  4. Rails migrations, zero downtime: https://blog.codeship.com/rails-migrations-zero-downtime

  5. Zero-downtime schema migrations in Postgres using views: https://fabianlindfors.se/blog/schema-migrations-in-postgres/ A tool(Reshape) that uses views to do zero-downtime migrations: https://fabianlindfors.se/blog/schema-migrations-in-postgres-using-reshape/

  6. Stop traffic to DB, queue the transactions, run a PostgreSQL update, re-enable transactions: https://www.adyen.com/blog/updating-a-50-terabyte-postgresql-database

  7. Safe and unsafe operations for high volume PostgreSQL: https://leopard.in.ua/2016/09/20/safe-and-unsafe-operations-postgresql#.YnRqzbdRX_E

  8. Changing Tires at 100mph: A Guide to Zero Downtime Migrations: https://kiranrao.ca/2022/05/04/zero-downtime-migrations.html

  9. Safely rename postgres table: https://brandur.org/fragments/postgres-table-rename

  10. Tool that makes postgres zero-downtime migrations easy: https://github.com/xataio/pgroll

  11. Zero downtime postgres version upgrade: https://www.instantdb.com/essays/pg_upgrade

  12. state machine in postgres: https://felixge.de/2017/07/27/implementing-state-machines-in-postgresql/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment