Clerk
- Postmortem
- Reliability & postmortems
- Databases & storage
- Outages & incidents
Postmortem: Clerk System Outage (February 19, 2026)
Answers How can Postgres statistics take down a whole service?
A routine automatic ANALYZE sampled too few rows, concluded a column was 100% NULL and flipped Postgres to a plan that traversed over 17,000 rows. Slow queries queued up until more than 95% of requests got 429s…
- The problem
- An automatic ANALYZE misread a column as 100% NULL and Postgres switched to a much slower query plan.
- What they did
- Clerk enabled a new session-token failover, then re-ran ANALYZE manually to restore the previous plan.
- The result
- Service recovered about 90 minutes in; Clerk raised the statistics target and refactored the query.
Why read it A statistics sample, not a deploy, took down an auth provider, and a customer’s retries looked like the cause.