karnstack
  • Home
  • Courses
  • Tracks
  • Papers
  • Vote on next
Read
  • Stacktrace
  • Guides
  • Changelog
Unlock every courseSee plans
  • Support
ef51706
  1. Stacktrace
  2. #databases
Sign in
All posts
Topic

#databases

3 posts

databases
Apr 27, 20267 min read
#06

TigerBeetle Would Rather Crash Than Guess

Two asserts buried in a financial database. One panics if your hardware lies about time. The other panics if you allocate memory after startup. Together, they're the whole philosophy.

databases
Jan 15, 20268 min read
#03

How Postgres Prevents Both Deadlock AND Livelock in Upserts

A one-line rule buried in PostgreSQL's INSERT ... ON CONFLICT code prevents two of the nastiest concurrency bugs at once: the transaction with the higher XID backs out.

databases
Dec 15, 20257 min read
#01

The Hidden Message in SQLite's Random Number Generator

Four magic numbers in SQLite's source code spell out a secret phrase. It's not an easter egg - it's cryptography's way of saying "trust me, there's no backdoor."