Summary
Hardens PostgreSQL startup migrations for large production databases so TLR can start without crashing Postgres into recovery.
Fixed
- Logs category migration — safe nullable column add (avoids
SQLSTATE 54000on oversized log messages). - Late migration retries — recover from transient
unexpected EOF/ connection drops. - callUnits.label — add without rewrite-heavy
NOT NULL DEFAULT. - Skip calls incident indexes at startup — building
calls_incident_status_idxon very largecallstables could segfault Postgres parallel workers; indexes are optional and can be built offline later.