The Companion Lab

A free Docker-based PostgreSQL environment with real datasets, live EXPLAIN diagrams, and every book query at your fingertips.

Get Started on GitHub
100% FREE

A Browser-Based PostgreSQL Lab

One docker compose up command launches PostgreSQL with real datasets and a Query UI at localhost:8042 — no install, no config, no psql required.

  • Navigate all book queries by chapter in the sidebar
  • Edit queries live, run them, see results instantly
  • Visual EXPLAIN diagrams — plan tree rendered as SVG
  • PostGIS spatial queries with inline map output
Query UI showing a LATERAL JOIN query and its EXPLAIN plan diagram

Learn Faster by Practicing

Practice at Every Step

How It Works

Clone, start, open. That's it.

  1. 1
    Clone the repository

    git clone https://github.com/dimitri/TheArtOfPostgreSQL
    cd TheArtOfPostgreSQL

  2. 2
    Start

    docker compose up -d
    Pulls the pre-seeded image, starts PostgreSQL and the Query UI. All datasets are included — no build or load step needed.

  3. 3
    Open http://localhost:8042

    Pick a book chapter from the sidebar, run the queries, tweak them, explore.

✓ No build step    ✓ All data included    ✓ No database install required

Need Guidance?

The lab gives you the environment. The course explains the concepts step by step. The workshops help you apply them with real-time guidance.

Part of The Art of PostgreSQL Ecosystem

Everything connects — the lab reinforces your learning

Learn → Practice → Apply

What You Can Practice

These are the exact topics covered in the Course and Workshop — here you can try them yourself.

Start practicing PostgreSQL now

Free, open-source, and ready to run locally

Practice is where learning sticks

Use the lab to apply what you learn, then go further with the course or join a workshop when you’re ready to deepen your expertise.

Already have the book? Take the course.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.