~/talk

PostgreSQL pgroll: Zero-Downtime, Reversible Migrations

Talkat FOSSASIA PGDay 2025 · on Friday, 2025-03-14· at 09:40· Hall 2· [databases, devops-and-delivery]
slides:none on file

pgroll is a Go single-binary CLI that applies PostgreSQL (14+) schema changes by creating virtual schemas and shadow tables, using triggers and transaction tracking to serve old and new schemas simultaneously. It performs automatic backfill of data, exposes start/status/complete/rollback commands (rollback works until a final complete is run), and targets zero service impact via zero-downtime migrations. Limitations: migration inputs are JSON files (no batch file import yet) and builds from source require Go 1.23+.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:48Challenges of online schema changes
  3. 6:01What is pgroll and its benefits
  4. 9:34How pgroll works in the background
  5. 11:21Expand contract workflow explained
  6. 14:56Schema versions during migration
  7. 18:50Installing and configuring pgroll
  8. 21:14Using pgroll with JSON change files
  9. 23:40Adding columns and constraints
  10. 25:45Comparison with other tools
  11. 28:12Q&A session begins
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.