‹ BackHN Continuity

Thread

Is your Postgres migration safe or not safe?

138 points · 45 comments · vira28

  1. kettlecrisp99 · · focus · HN ↗
    Thing that bit me most wasn't the DDL itself, it was lock queuing. An ADD COLUMN is instant but if it waits behind a long read, every query behind it piles up too. Lock_timeout plus retry saved us more than any clever migration tool.
    1. vira28 · · focus · HN ↗
      Agree. `lock_timeout` will go a long way in terms of damage control.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.