New in 2026

The book and courses, with a live SQL environment

Read the book online, run every query live in your browser, follow the courses — all in one place. The book is a one-time purchase. The courses are a yearly subscription, with new modules and content added regularly.

Everything in one place

One App for the Book, the Courses, and Live SQL

Read, practice, and track your progress without juggling separate tools, accounts, or installs.

Book reader, online — and offline

The full 590-page book as clean, navigable web pages. Bookmark chapters, track what you've read, pick up on any device. PDF and ePub downloads included. Datasets ship with the Docker starter kit for a local dev-friendly lab.

All 6 courses, integrated

The complete 48-module curriculum — Window Functions through Reading Query Plans — with progress tracking and handout PDFs per module.

SQL in the browser

Every lesson connects live to a real PostgreSQL 17 database — full schema, full dataset, every extension the book uses. No install, no Docker, no account to set up. It's read-only, so there's nothing to break.

Visual EXPLAIN diagrams

EXPLAIN output rendered as interactive plan trees — not raw text. Spot expensive nodes, compare plans before and after an index.

No password to remember

Magic-link sign-in: enter your email, click the link, you're in. One account across the book, courses, and free lessons.

The book is yours forever

Buy once, keep it forever. Edition updates — like the 2026 Second Edition — are free for all previous purchasers. Courses are a yearly subscription, with new content added regularly.

Track your progress

Your dashboard: chapters, exercises, and quizzes

Every chapter and module comes with hands-on exercises and short quizzes to check what actually stuck — not just a progress bar. Your dashboard tracks what you've read, what you've solved, and what's left.

Hands-on exercises

Real SQL problems tied to the chapter or module you just read — run your own query against the same live database and compare it to the reference solution.

Short quizzes

A handful of questions per chapter or module to check what stuck — not graded homework, just a quick gut check.

Leaderboard (optional)

Points from exercises and quizzes, if you want to track them — opt-in, visible only if you choose to show it.

Managing a team?

An Enterprise dashboard, layered on top

Buying for your team adds an Enterprise dashboard to the same app — on top of your own student dashboard, not a separate tool.

Create & manage teams
Add members via form or CSV
Assign & reassign seats
Magic-link invites
Per-member progress
Team leaderboard
How it works

SQL runs live — no install, nothing to configure

Every lesson connects to a real PostgreSQL 17 database we run and maintain — full schema, full dataset, every extension the book uses. It's a shared, read-only connection: query freely, explore the plans, nothing to break.

Try it yourself, create a free account now

Local development

Prefer to work locally? The lab runs on your machine.

The open-source Docker Compose lab ships the same datasets pre-loaded into a real PostgreSQL instance — no browser, no cloud, full read-write access. One command and you're in.

$ git clone https://github.com/dimitri/TheArtOfPostgreSQL
$ cd TheArtOfPostgreSQL
$ docker compose up -d
# then open http://localhost:8042 in your browser

PostgreSQL starts with f1db, Chinook, Pagila, and the other book datasets already loaded. Connect with any client — psql, DBeaver, DataGrip, TablePlus. Run queries, tweak schemas, break things and reset.

It's free, MIT-licensed, and works entirely offline. The only thing it doesn't include is the book text itself — that lives in the app.

View on GitHub
What's included
  • PostgreSQL (latest stable)
  • f1db, Chinook, Pagila datasets
  • All book SQL examples
  • Adminer query UI at localhost:8042
  • EXPLAIN diagram viewer
  • Works with any SQL client
What's not included
  • Book chapters and content
  • Course lessons and modules
  • Progress tracking

For the full reading + practice experience, sign in to the app

How it compares

Interactive SQL learning: the landscape

Several platforms let you write SQL in a browser. Here is how they differ from the TAOP app's approach.

FeatureThe Art of PostgreSQL ApplicationCodecademypgexercises.comSQLPad / DB-FiddleNeon Playground
Real PostgreSQL PG 17, shared instance~ SQLite subset Real server Real server Real server
Runs offline Via the Docker Compose lab
Your data stays local Via the Docker Compose lab
EXPLAIN diagrams Interactive plan tree~ Text only~ Text only
Paired with a book 590-page text integrated~ Short tutorials
Structured course curriculum 6 courses, 48 modules~ Exercises only
Real production datasets f1db, Chinook, Pagila — full datasets, shared instance~ Toy data club dataset Bring your own Bring your own
Extensions (PostGIS, pgvector…) Included, shared instance Neon extensions
Progress tracking

Most people start with the book

590 pages of production PostgreSQL — a one-time purchase, yours forever. Updates like the 2026 Second Edition are free for all purchasers.

Fair Pricing Available

Want to try before buying? Create a free account — same app experience, curated selection of chapters and free lessons.