I Dropped the Production Database on a Friday Night

4 vincejos 2 6/18/2025, 7:14:28 AM vince.beehiiv.com ↗

Comments (2)

Arnt · 3h ago
I hope the poster will learn about transactions at some point. Postgres even lets you alter the schema within a transaction.

What I learned, once upon a time, is that with a database, you shouldn't delete data you want to keep. If you want to keep something, you use SQL's fine UPDATE to update it, you don't delete it. Databases work best if you tell them to do what you want them to do, as a single transaction.

cranberryturkey · 4h ago
i dropped the dev database once at PayPal back in 2006