---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=incident-io&tag=postgres"
---

# Posts

Filtered by topics: PostgreSQL, source: incident.io.

Posts 1–17 of 17, page 1 of 1, newest first.

## 2026-11-24

- [The side quest that freed 10% of our database](https://swe.quest/articles/the-side-quest-that-freed-10-of-our-database-649662623bb94a1e.md): incident.io · 2026-11-24 · Medium · 13 min read · PostgreSQL, Query engines, Performance engineering, SQL
  A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.

## 2026-10-06

- [How savepoints quietly throttled our Postgres queue](https://swe.quest/articles/how-savepoints-quietly-throttled-our-postgres-queue-a32737dd90a62c34.md): incident.io · 2026-10-06 · Hard · 15 min read · PostgreSQL, Performance engineering, Storage engines, Concurrency, Scaling
  Using a SAVEPOINT per tick in a Postgres-backed job queue made every locked row carry a MultiXact ID in xmax.

## 2026-07-21

- [Don't add a read replica until you've read this](https://swe.quest/articles/don-t-add-a-read-replica-until-you-ve-read-this-a990a2b0dc14e87b.md): incident.io · 2026-07-21 · Medium · 18 min read · PostgreSQL, Replication, Consistency models, Go, Scaling
  incident.io moved nearly all Postgres read traffic to a read replica and had to preserve read-after-write consistency without hand-routing each query.

## 2025-11-14

- [Bloom filters: the niche trick behind a 16× faster API](https://swe.quest/articles/bloom-filters-the-niche-trick-behind-a-16-faster-api-f8c936f8ee9c7bb2.md): incident.io · 2025-11-14 · Medium · 16 min read · PostgreSQL, Data structures, Performance engineering, API design
  incident.io cut P95 latency of its alert-filtering API for large organisations from 5s to 0.3s by pushing JSONB attribute filters into Postgres using bloom filters.

## 2025-10-22

- [Service disruption on October 20, 2025](https://swe.quest/articles/service-disruption-on-october-20-2025-fe786fa7dabbc413.md): incident.io · 2025-10-22 · Medium · 12 min read · Incidents & postmortems, Resilience, PostgreSQL, CI/CD, Cloud platforms
  The October 20, 2025 AWS us-east-1 outage degraded incident.io through third-party dependencies even though it runs on Google Cloud: its transcription, SAML, telecom and status page providers were all affected.

## 2025-02-04

- [Debugging deadlocks in Postgres](https://swe.quest/articles/debugging-deadlocks-in-postgres-e07d42201c9784eb.md): incident.io · 2025-02-04 · Medium · 6 min read · PostgreSQL, Concurrency, Debugging, Consistency models
  Postgres deadlocks come from transactions acquiring locks in inconsistent orders, and the main fix is to restructure transactions so they always lock resources in the same sequence.

## 2024-10-25

- [Choosing the right Postgres indexes](https://swe.quest/articles/choosing-the-right-postgres-indexes-8f3c9e0e9ee3e588.md): incident.io · 2024-10-25 · Medium · 9 min read · PostgreSQL, Performance engineering, SQL, Observability
  Postgres indexes pay off for frequently run queries that discard most rows they read, need results in a specific order, or must enforce uniqueness.

## 2024-07-18

- [Building On-call: Time, timezones, and scheduling](https://swe.quest/articles/building-on-call-time-timezones-and-scheduling-f978980b35f41e6a.md): incident.io · 2024-07-18 · Medium · 11 min read · Time & clocks, Scheduling, Testing, PostgreSQL, Go
  incident.io's on-call scheduler computes who is on shift from rotations with working hours, round-robin handovers and overrides, and getting it right depends on being precise about local time, offsets, IANA timezones, instants and durations.

## 2024-07-11

- [Migrating JSONB columns in Go](https://swe.quest/articles/migrating-jsonb-columns-in-go-042317bcb9572fbf.md): incident.io · 2024-07-11 · Medium · 4 min read · Schema migrations, Go, PostgreSQL
  When a JSONB column's shape changes, a custom sql.Scanner and driver.Valuer on the Go column type can read both the old and new formats while always writing the new one. incident.io used this to move conditions from a flat array to an array of condition groups, which was needed to support OR logic.

## 2024-01-19

- [Finding relationships in your data with embeddings](https://swe.quest/articles/finding-relationships-in-your-data-with-embeddings-269cb25fce48621d.md): incident.io · 2024-01-19 · Medium · 14 min read · Vector search, PostgreSQL, LLMs, Product engineering, Incidents & postmortems
  incident.io built a related-incidents feature by embedding a plain-text representation of each incident with OpenAI's text-embedding-ada-002 and ranking matches by cosine similarity.

## 2023-09-26

- [Clouds, caches and connection conundrums](https://swe.quest/articles/clouds-caches-and-connection-conundrums-9abdd4ad0c3450ff.md): incident.io · 2023-09-26 · Medium · 10 min read · Kubernetes, Networking, Incidents & postmortems, Debugging, PostgreSQL
  After migrating to Google Cloud, sporadic Postgres and memcached connection timeouts on GKE turned out to be node-wide, not process-local.

## 2023-04-20

- [Battling database performance](https://swe.quest/articles/battling-database-performance-5c5eb431f69f9020.md): incident.io · 2023-04-20 · Medium · 10 min read · PostgreSQL, Performance engineering, Observability, Go, Incidents & postmortems
  Intermittent API timeouts at incident.io over two weeks traced back to requests blocking on Go's database/sql client-side connection pool, with no single slow query or pool to blame.

## 2023-04-12

- [Keep the monolith, but split the workloads](https://swe.quest/articles/keep-the-monolith-but-split-the-workloads-a46b5ee6a5f1e352.md): incident.io · 2023-04-12 · Medium · 9 min read · Resilience, System design, PostgreSQL, Go, Microservices
  A Go monolith can get much of the reliability isolation of microservices by splitting workloads into separate deployments of the same binary, instead of breaking it into services.

## 2022-09-14

- [Building Workflows, Part 2 – the executor and evaluation](https://swe.quest/articles/building-workflows-part-2-the-executor-and-evaluation-b966efc6ca5866f8.md): incident.io · 2022-09-14 · Medium · 19 min read · PostgreSQL, Scheduling, Queues & messaging, System design, Go
  incident.io's workflow executor listens for trigger events, evaluates workflow conditions against a scope, and creates a workflow run before executing steps.

## 2022-07-07

- [Tracing Gorm queries with OpenCensus & Google Cloud Tracing](https://swe.quest/articles/tracing-gorm-queries-with-opencensus-google-cloud-tracing-0546b4ac4bd6b7cf.md): incident.io · 2022-07-07 · Medium · 6 min read · Observability, Go, PostgreSQL
  Gorm's Callbacks API can wrap every Postgres query in an OpenCensus span that feeds Google Cloud Tracing: a before-callback starts the span only when a parent span exists, and an after-callback ends it.

## 2022-01-25

- [A modern data stack for startups](https://swe.quest/articles/a-modern-data-stack-for-startups-20644b674a9fc96e.md): incident.io · 2022-01-25 · Medium · 15 min read · Data pipelines, Analytics & OLAP, PostgreSQL
  A small startup data stack built in two weeks: Fivetran (plus Stitch for connectors Fivetran lacks, like the Close CRM) extracts data into BigQuery, dbt transforms it, and Metabase lets non-engineers explore it without SQL.

## 2021-07-12

- [One, Two, Skip a Few...](https://swe.quest/articles/one-two-skip-a-few-b1af2f9386afbc09.md): incident.io · 2021-07-12 · Medium · 8 min read · PostgreSQL, Replication, Incidents & postmortems, Databases
  Postgres sequences pre-log 32 values to the WAL (SEQ\_LOG\_VALS), so replicas see sequence state as it would be after a primary crash.

Same list as RSS: [https://swe.quest/feed.xml?source=incident-io&tag=postgres](https://swe.quest/feed.xml?source=incident-io&tag=postgres). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

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)
