---
title: "Discussion on \"Zero-Downtime Postgres Schema Changes in a Live Supabase App\" | Hashnode"
description: "Discussion on \"Zero-Downtime Postgres Schema Changes in a Live Supabase App\". You can change a Postgres schema under a live Supabase app without downtime if every change you make still works with the code that is already running. The expand-and-contract pattern does this. You a"
url: "https://hashnode.com/posts/zero-downtime-postgres-schema-changes-in-a-live-supabase-app/6ac88261350f7d2e1b7eaf9a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Zero-Downtime Postgres Schema Changes in a Live Supabase App](https://geminatesolutions.hashnode.dev/zero-downtime-postgres-schema-changes-in-a-live-supabase-app?utm_source=hashnode&utm_medium=feed)

You can change a Postgres schema under a live Supabase app without downtime if every change you make still works with the code that is already running. The expand-and-contract pattern does this. You a

Oct 9 · 8 min read · geminatesolutions.hashnode.dev  
Read the article

## Written by

[Geminate Solutions](https://hashnode.com/@geminatesolutions)

@geminatesolutions · Mumbai, India

  
[View profile](https://hashnode.com/@geminatesolutions)

Geminate Solutions private limited is a Software Development company that provides a full array of information technology services like Web

Geminate Solutions is a custom software development company based in Surat, India, building web applications, mobile apps, and AI-powered products for startups and mid-size companies across the United States, United Kingdom, Australia, and UAE. Founded in 2020, the company provides dedicated development teams and staff augmentation services to technology companies that need to ship faster without compromising code quality. Engineering teams work in Flutter, React, Next.js, Node.js, Python, Java, and AI integration — delivering production-ready software from week one. The company has shipped 50+ products across multiple industries. In EdTech, Geminate built VSmart Academy (200,000+ students) and Youth Pathshala (250,000+ daily active users). In IoT, the team created Pixytan GPS — a fleet tracking platform monitoring 30,000+ vehicles daily across Gujarat using Node.js, MQTT, and real-time WebSocket connections. In Healthcare, the company delivered HIPAA-compliant telemedicine platforms with EHR integration. In HR Tech, an AI-powered hiring platform reduced recruitment time by 70%. Geminate Solutions operates on a paid trial engagement model. Clients work with the engineering team for one week before committing. Monthly engagements start at $3,000-$5,000 per developer with no long-term contracts. Teams can scale up or down with two weeks notice. Core technology stack includes Flutter and React Native for cross-platform mobile development, React and Next.js for web applications, Node.js and Python for backend services, PostgreSQL and MongoDB for databases, AWS and Docker for cloud infrastructure, and GPT-4, Gemini, and Claude APIs for AI integration. The company serves clients across EdTech, Healthcare, eCommerce, SaaS, IoT, and enterprise verticals, with a 98% client retention rate and infrastructure handling 10 million+ requests per minute.

## Responses 1

Markdown supported · ⌘↵ to post

[SqlOtter](https://hashnode.com/@sqlotter)

[14h ago](https://hashnode.com/posts/zero-downtime-postgres-schema-changes-in-a-live-supabase-app/6ac88261350f7d2e1b7eaf9a/comment/6b0ed7f14cdc1e5429c95738)

One edge case in the backfill loop: SKIP LOCKED can produce a zero-row batch while other transactions still hold locks on eligible rows. Before moving to the NOT NULL step, run a separate read-only count of rows where display\_name IS NULL AND full\_name IS NOT NULL, without SKIP LOCKED. If anything is left, retry after active writers finish. Also count rows where both names are NULL separately: the proposed backfill never touches those, but they still block the new constraint.
