01, 7 chapters
start here
everything.start
start here
what a database actually is, the real postgres running in this page, and your first query.
- 01.01what a database actually isfiles you could write yourself, plus the four things you'd get wrong: crashes, concurrency, queries and rules.
- 01.02the relational modeleverything is a table, even the answer. codd's idea, and why it beat everything before it.
- 01.03postgres in your browsera real postgres 18 compiled to webassembly runs every query here. what it can do, and the short list of what it can't.
- 01.04your first querySELECT, FROM, a semicolon. what the result grid is telling you, and why you said what, not how.
- 01.05psql and a real serverinstalling postgres 18, the backslash commands worth knowing, and \x for rows too wide to read.
- 01.06reading an errorERROR, the caret, DETAIL, HINT and the five-character SQLSTATE. postgres errors say more than they look.
- 01.07SQL and its dialectsone standard, many accents. what's portable across postgres, mysql and sqlite, and how this book marks what isn't.