Field Experience & Post-Mortems
Real-world production crises, incident root causes, community events, and practitioner field notes.
Cases / Post-Mortem
Real production incident post-mortems, root cause analyses, and preventative playbooks.
Field Notes
Short practitioner field tips and insights gained on the front lines.
Featured Post-Mortem Incident Reports
All Cases →PostgreSQL Emergency Recovery During TXID Wraparound
A high-throughput 12TB e-commerce database suddenly rejected all client connections with "database is not accepting commands to avoid wraparound data loss".
Continuously monitor `datfrozenxid` relative age via Prometheus; raise critical pages at 70% threshold before PostgreSQL forces emergency shutdown.
MySQL InnoDB Gap Lock Deadlock Storm under Flash Sale
During flash sale traffic, cart checkout services flooded application logs with InnoDB deadlock exceptions.
For high-concurrency transactional OLTP systems, READ COMMITTED with binlog_format=ROW eliminates the majority of phantom gap deadlocks.
SQL Server TempDB Allocation Bottleneck (PAGELATCH_UP)
A 64-core enterprise ERP SQL Server instance spiked to 100% CPU with hundreds of threads blocked on PAGELATCH_UP waits in tempdb.
Modern multi-core SQL Server installations must allocate 8+ identical TempDB data files with fixed MB autogrowth.
Field Notes
All Notes →Never Manually Delete Files from pg_wal!
Running `rm -rf pg_wal/*` during a disk full panic corrupts the transaction log permanently.
Use Percona pt-online-schema-change for 100M+ Row Tables
Large ALTER TABLE statements can cause Metadata Lock (MDL) queues that stall web traffic.
Never Leave SQL Server 'Max Server Memory' at Default Unlimited!
The default 2.1TB memory ceiling causes SQL Server to starve the Windows OS, triggering severe thread paging.
Raise Cost Threshold for Parallelism from Default (5) to 40-50
Default cost threshold of 5 triggers premature query parallelism and excessive CXPACKET synchronization waits on multi-core servers.
Share Your Production Insights
Contribute your real-world database war stories, post-mortem analyses, and production pro tips to the community knowledge base.