---
title: "Incident Report: October 28th, 2025"
description: "A schema migration that added an indexed column to a ~1 billion-row Postgres table without `CREATE INDEX CONCURRENTLY` took an exclusive table lock, queuing nearly all backend API queries and taking down Railway's dashboard, CLI, Public API and GitHub webhook deploys for about 40 minutes."
url: "https://swe.quest/articles/incident-report-october-28th-2025-842ec59ef90dc7e9"
canonical: "https://blog.railway.com/p/incident-report-oct-28th-2025"
source: "Railway"
published: "2025-10-28"
difficulty: "medium"
kind: "Incident"
reading_minutes: 2
tags: ["postgres","schema-migrations","incident-response","databases"]
---

# Incident Report: October 28th, 2025

A post on [Railway](https://swe.quest/sources/railway.md), published 2025-10-28, 2 min read, Incident. Original: [https://blog.railway.com/p/incident-report-oct-28th-2025](https://blog.railway.com/p/incident-report-oct-28th-2025)

## Summary

A schema migration that added an indexed column to a ~1 billion-row Postgres table without \`CREATE INDEX CONCURRENTLY\` took an exclusive table lock, queuing nearly all backend API queries and taking down Railway's dashboard, CLI, Public API and GitHub webhook deploys for about 40 minutes. Blocked requests piled up until PgBouncer exceeded Postgres's connection limit, exhausting even reserved administrative slots, so engineers could not connect to kill the index build. The outage ended only when the build finished on its own after roughly 30 minutes. Fixes include a CI check that requires \`CONCURRENTLY\` for every index creation, PgBouncer pool limits capped below Postgres capacity, and per-user connection limits that keep admin access available.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- PostgreSQL indexes and locking ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- connection pooling

## Keywords

PostgreSQL, PgBouncer, CREATE INDEX CONCURRENTLY, Railway

## Related posts

- [Incident Report: December 8th, 2025](https://swe.quest/articles/incident-report-december-8th-2025-0ad0c5a15c22753f.md): Railway · 2025-12-08 · Medium · 2 min read · PostgreSQL, Schema migrations, Incidents & postmortems
  A schema migration adding a nullable column to a ~1 billion row PostgreSQL table stalled behind locks held by a long-running query.
- [Incident Report: September 22nd, 2025](https://swe.quest/articles/incident-report-september-22nd-2025-f36fdb64699f52a7.md): Railway · 2025-09-22 · Medium · 5 min read · Incidents & postmortems, PostgreSQL, Schema migrations, Resilience, Deployment
  A schema change removing an unused column was partially reverted by a later code change, breaking a core API and leaving Railway's project canvas stuck loading.
- [PostgreSQL Stories: A simple query with a big problem](https://swe.quest/articles/postgresql-stories-a-simple-query-with-a-big-problem-6dd72fff3c9a1d47.md): Render · 2024-04-03 · Medium · 10 min read · PostgreSQL, Debugging, Incidents & postmortems, Schema migrations
  A seemingly simple indexed join with LIMIT 1 ran for over four hours on Render's staging PostgreSQL, holding a lock that blocked CREATE OR REPLACE VIEW migrations and stalled deploys.
- [Navigating PostgreSQL Locks with Neon and Atlas](https://swe.quest/articles/navigating-postgresql-locks-with-neon-and-atlas-61f1baeebb69a86a.md): Neon · 2025-03-14 · Medium · 11 min read · Schema migrations, PostgreSQL, CI/CD, Static analysis
  Adding a UNIQUE constraint or setting a column NOT NULL in Postgres triggers a full table scan under an ACCESS EXCLUSIVE lock, which blocks all reads and writes and can take down an API on large tables.
- [LLM Rules for Postgres](https://swe.quest/articles/llm-rules-for-postgres-ad82e8ad652f6e5a.md): Neon · 2025-08-29 · Medium · 4 min read · PostgreSQL, Code review, Schema migrations, AI for coding, LLMs
  Six explicit Postgres rules, drawn from building the wispbit review bot, let an LLM code reviewer or coding agent catch common migration and query mistakes before production.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
