SOL · 4,127 · CASSINI ARCHIVE · CLASSIFIED · POSTGRES INSIDE

Something is erupting from a moon of Saturn.

Plumes of ice and water. Salt. Organic compounds. A liquid ocean beneath the crust. The Cassini probe sent back twelve years of strange, beautiful data, and nobody can quite explain what it means.

You've just been hired as the interim DBA. The previous one walked off the job. Nobody's saying why.

PostgreSQL · taught the fun way · EPUB + PDF · real Cassini mission data

A Curious Moon cover

01 · The Mystery

They named it Enceladus. And then it broke physics.

For decades, we thought the outer moons of the solar system were dead. Frozen rocks. Done. Then in 2005, the Cassini probe flew past a tiny ice ball orbiting Saturn (only 314 miles wide) and saw jets. Hundreds of them. Erupting from cracks in the southern hemisphere.

Water. Salt. Organic molecules. The kind of chemistry that, on a planet like ours, eventually decides to start building things.

So what's going on down there?

02 · Your Mission

You take the role of an interim DBA.

The last one walked off the job. The team is small, the deadline is yesterday, and somebody handed you a 635-gigabyte archive of raw NASA telemetry (magnetometer readings, plume velocities, image plate metadata) and asked you to figure out what's actually going on.

You'll do this with PostgreSQL. Not because anyone wants to teach you SQL. Because the data is there, and the database is the only tool that can answer what you need to ask of it.

By the time you've solved the case, you'll have shipped a working data pipeline in production-grade Postgres. You won't have noticed. That's the point.

03 · The Story You'll Live

A noir told in SELECT statements.

Most database books read like a tax return. A Curious Moon reads like the journal of someone in over their head, who is also having the time of their life. You'll meet Dee Yan (your fictional taskmaster, brilliant and a little terrifying) and her team. They'll hand you problems. You'll pour another coffee.

  1. DAY 01First contactMeet Dee. Sign the NDA.
  2. WEEK 01Import the archivepsql, COPY, sanity checks
  3. WEEK 03Suspicious patternsJoins, GROUP BY, window fns
  4. WEEK 06The big inferenceGeospatial, time series
  5. FINALEYou file the reportDeploy. Tune. Ship.

The Chapters

Nine chapters. One database. One question.

Plain-English explanations. Real queries. Run them yourself against the data. By the end you won't just know Postgres: you'll have used it to crack a case.

  1. Module 01

    Setup & psql Survival

    From zero to comfortable on the command line.

    psql · roles · CREATE DATABASE

  2. Module 02

    Importing the Archive

    635 GB of NASA telemetry, one COPY at a time.

    COPY · CSV · staging tables

  3. Module 03

    Sanity & Schemas

    Constraints, foreign keys, the real shape of the data.

    DDL · constraints · indexes

  4. Module 04

    First Queries

    Where are the plumes? When did they fire?

    SELECT · WHERE · ORDER BY

  5. Module 05

    Joins & GROUP BY

    Cross-referencing 14 instruments worth of pings.

    JOIN · aggregates · HAVING

  6. Module 06

    Window Functions

    Sliding views over 13 years of orbit.

    OVER · LAG · ROW_NUMBER

  7. Module 07

    Geospatial

    Plotting eruptions on a sphere with PostGIS.

    PostGIS · ST_DWithin

  8. Module 08

    Time Series

    What's actually changing about Enceladus?

    date_trunc · interval · CTEs

  9. Module 09

    The Inference

    Putting the pieces together. The big reveal.

    materialized views · EXPLAIN

What you'll learn

What You'll Discover in A Curious Moon.

I won't waste your time with sleep-inducing demos and examples: we're going to hit the ground running by importing millions of records into PostgreSQL right from the command line and then we're going to interrogate it for correctness. From there we put our detective hats on and get to work.

01

Learning Through a Fun Story

You'll learn PostgreSQL through storytelling, not dry tutorials, so you can maintain interest and actually remember what you learn, which means you'll finally break through your database learning plateau.

02

Master ETL Processes

You'll master ETL processes with real NASA data so you can confidently handle complex datasets in your own work, which means you'll be prepared for real-world data challenges.

03

Work with Raw Data

You'll work with raw, imperfect data and learn how to audit and clean it, which means you'll develop real-world skills that textbooks never teach.

04

Optimize Database Performance

You'll optimize slow queries using EXPLAIN and ANALYZE to figure out where to put your indexes, which means you'll know how to make your databases lightning fast.

05

Perform Scientific Analysis

You'll perform mathematical analysis to verify flyby altitudes and speeds using data from the Ion and Neutral Mass Spectrometer during the 22 close encounters with Enceladus, which means you'll understand how to extract meaningful insights from complex datasets.

06

Search for Extraterrestrial Life

You'll run the ultimate analysis: Is there life under the ice of Enceladus? You'll have all the data needed to support this claim, which means you'll experience firsthand how database skills can contribute to groundbreaking scientific discovery.

04 · Author

Why I wrote this strange little book.

I'm Rob Conery. I've been building software for 25 years, mostly without a clue what I was doing, and definitely without a CS degree. I've worked at Microsoft, with Visa, Google, Starbucks, PayPal. I co-founded Tekpub. None of that taught me Postgres.

I learned Postgres because I had real questions and a real database in front of me. That's what works. So I sat down to write the book I wished had existed: one that gives you a problem worth solving, then hands you the database to solve it with.

Cassini was that problem for me. The data is real. The mission is real. The story I built around it isn't, but the SQL is, and that's the part you'll keep.

Book · Checkout

A Curious Moon

Discover the joyous addiction of databases using real data from NASA's Cassini mission. A fictional narrative combined with hands-on PostgreSQL, like The Martian, but with SQL.

$30One payment. Nothing renews.

What you get

  • A Curious Moon
Guarantee

Don't love the book? Email me. Full refund. No friction, no hard feelings.

What happens next

  1. Pay right here, on this page.
  2. Stripe handles your card. This site never sees the number.
  3. You land back here with your access switched on and a receipt in your inbox.

Your order

A Curious Moon
$30
Getting the secure form ready…

Stripe handles your card. This site never sees the number.

Final transmission · A Curious Moon

Find out what's down there. Learn Postgres on the way.

$30 for the EPUB and PDF. The mission archive is included. 30 days to refund, no questions asked.

Begin the assignment: $30Get your downloads