---
title: "Incident Report: December 8th, 2025"
description: "A schema migration adding a nullable column to a ~1 billion row PostgreSQL table stalled behind locks held by a long-running query."
url: "https://swe.quest/articles/incident-report-december-8th-2025-0ad0c5a15c22753f"
canonical: "https://blog.railway.com/p/incident-report-december-8-2025"
source: "Railway"
published: "2025-12-08"
difficulty: "medium"
kind: "Incident"
reading_minutes: 2
tags: ["postgres","schema-migrations","incident-response"]
---

# Incident Report: December 8th, 2025

A post on [Railway](https://swe.quest/sources/railway.md), published 2025-12-08, 2 min read, Incident. Original: [https://blog.railway.com/p/incident-report-december-8-2025](https://blog.railway.com/p/incident-report-december-8-2025)

## Summary

A schema migration adding a nullable column to a ~1 billion row PostgreSQL table stalled behind locks held by a long-running query. Waiting connections piled up until PgBouncer exceeded the database connection limit, so backend replicas failed health checks and dropped out of rotation, taking down the dashboard, CLI, login, GitHub deploys and API for about eight minutes. Running deployments stayed up. Railway plans to raise database connection limits, reconfigure PgBouncer to fit within them, and fix the long-running query.

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)

## Prerequisites

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

## Keywords

PostgreSQL, PgBouncer, Railway

## Related posts

- [Incident Report: October 28th, 2025](https://swe.quest/articles/incident-report-october-28th-2025-842ec59ef90dc7e9.md): Railway · 2025-10-28 · Medium · 2 min read · PostgreSQL, Schema migrations, Incidents & postmortems, Databases
  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.
- [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.
- [The Postgres mistakes we all still make](https://swe.quest/articles/the-postgres-mistakes-we-all-still-make-63314d194ac77b85.md): Neon · 2026-11-28 · Medium · 15 min read · PostgreSQL, Performance engineering, Databases
  Five common Postgres mistakes all eventually show up as connection pressure: opening a connection per request, appending to JSONB columns, holding transactions open across external API calls, nightly bulk DELETEs, and unused indexes.
- [Incident Report: April 30th, 2025](https://swe.quest/articles/incident-report-april-30th-2025-888f669e7de3e34c.md): Railway · 2025-04-30 · Medium · 4 min read · Incidents & postmortems, Kubernetes, Microservices, Configuration management, PostgreSQL
  Railway's API backend, which serves the dashboard, CLI, Public GraphQL API and GitHub deploy webhooks, went down for roughly four hours after a batch of Kubernetes configuration changes meant to cut dashboard latency.

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)
