The Art of PostgreSQL

The book that teaches SQL to developers: Learn to replace thousands of lines of code with simple queries!

Browse the full table of contents →

Trusted by developers

Used in real systems

  • "This book is on a higher level than generic software books. It explains the how's and why's of using Postgres's many feature. It is an excellent companion to the official Postgres documentation."

    Bruce Momjian, PostgreSQL core team
  • "At last the definitive Postgres book for app developers is out, and from the amazing @tapoueh no less. Go get it!"

    Peter van Hardenberg
  • "Full edition of The Art of PostgreSQL is BRILLIANT! Not just best PG resource ever but best tech-learning package I've ever seen!"

    Derek Sivers
  • "Thanks for your fantastic book. It's helped me immensely in my current job. Technical books can often be a bore and hard to digest, but The Art of PostgreSQL was a pleasure to read."

    Ben Davies

Practical PostgreSQL for Developers

Start with the foundation

The book is your entry point to a complete PostgreSQL system. Learn the fundamentals, practice with real data, then apply advanced techniques in production.

Fair Pricing Available
Dimitri Fontaine

Written by a PostgreSQL major contributor—author of CREATE EXTENSION and Event Triggers—and creator of tools such as pgloader, pgcopydb, and pg_auto_failover. With years of production consulting and international conference speaking experience, the content is built for developers who need practical, real-world skills, not theory.

Master PostgreSQL Through Principles That Stand the Test of Time

Build durable expertise in database design, performance, and SQL mastery—skills that remain relevant across PostgreSQL versions. The Second Edition, Updated (2026) covers PostgreSQL 10 through 18.

The Art of PostgreSQL: A Complete Learning System

Learn SQL, performance, and data modeling that works in production

The Art of PostgreSQL is a complete, practical system to move from writing queries to designing and operating real data systems. Start with the book to build solid foundations, run SQL live in your browser with the companion app, and go deeper with structured courses.

Continue after the book

A complete PostgreSQL course packaged in three tiers:
for different goals and experience levels.

Live Workshop Sessions

Designed for advanced users, a focused 3-hour deep dives with real-time Q&A.

Workshops cover specific topics in depth — window functions, EXPLAIN plans, aggregation patterns, and more. Limited seats, expert instruction, immediate application.

SQL in your browser — or locally

No install needed to start.

The companion app ships a live PostgreSQL 16 engine in your browser, powered by PGLite. Open any lesson and every query runs against real datasets — F1 results, music charts, MoMA collection, and more. No account, no install, no cloud connection.

Prefer a local environment? The Docker starter kit ships with the same datasets pre-loaded. One command to start, works with any SQL client.

Ready to master PostgreSQL?

The book is the foundation. Everything else builds on it.

Already have the book? Take the Course

Not sure yet? Try free — sample chapters and lessons, no credit card required.

One System, One Learning Path

Learn → Practice → Apply → Master

Book

Foundation & reference

Course

Structured learning

Workshop

Live sessions with the author

Lab

SQL in your browser, built in

Most people continue with the course.

Not convinced yet? Get a FREE chapter including the full Table of Contents!