0zerodowntime.in

Note

Clerk: an automatic ANALYZE flipped a query plan

· Source dated 2026-02-19 · 1 min read

Clerk: an automatic ANALYZE flipped a query plan.

Postmortem: Clerk System Outage (February 19, 2026) (Clerk) ↗

Clerk’s postmortem says an automatic Postgres ANALYZE led to a bad query plan. Service returned about 90 minutes later, and over 95% of traffic saw 429 responses.

Our opinion. We think this is a change that nobody deployed. The database changed its own behaviour. Clerk’s fix adds alerts for query plan flips, so the cause shows up directly, not through symptoms. We would do the same on any Postgres we run. We would also test what the app does when the database is slow, not down.

databasepostgresalerting