WeSearch

Zero Downtime Database Migrations: A Practical Guide for PostgreSQL

·5 min read · 0 reactions · 0 comments · 4 views
Zero Downtime Database Migrations: A Practical Guide for PostgreSQL

Step-by-step guide to performing schema migrations in PostgreSQL without any downtime. Cover ALTER TABLE tricks, CREATE INDEX CONCURRENTLY, adding columns with defaults, renaming via views, and real-world migration scripts.

Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3790305) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } SoftwareDevs mvpfactory.io Posted on May 1 • Originally published at mvpfactory.io Zero Downtime Database Migrations: A Practical Guide for PostgreSQL #webdev #programming --- title: "Zero Downtime Database Migrations: A Practical Guide for PostgreSQL" published: true description: "Step-by-step guide to performing schema migrations in PostgreSQL without downtime — covering ALTER TABLE tricks, CREATE INDEX CONCURRENTLY, safe renames, and migration tooling." tags: postgresql,…

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)