Jupyter, full seeded datasets - practice environment for the book PostgreSQL: 1,000 Examples
346
A ready-to-practice PostgreSQL + Jupyter environment for the book PostgreSQL: 1,000 Examples on Amazon Kindle.
Needs Docker Desktop - free for personal use, and the only thing to install.
Mac / Linux:
mkdir -p practice
docker run --rm \
-p 8888:8888 -p 5432:5432 \
-v $(pwd)/practice:/practice \
bilearner/postgres1000-practice:1.1
Windows PowerShell:
mkdir practice -Force
docker run --rm `
-p 8888:8888 -p 5432:5432 `
-v ${PWD}/practice:/practice `
bilearner/postgres1000-practice:1.1
Open http://localhost:8888 in your browser. JupyterLab opens with 53 chapter folders, each holding that chapter's notebook and room for your own files.
Also on GitHub Container Registry, if Docker Hub's anonymous pull limit gets in
your way: ghcr.io/bitoollearner/postgres1000-practice:1.1
work_mem 4MB,
default_statistics_target 1000, cluster locale Cecommerce schema preloaded - 5,000 orders, 14,998 order lineshr schema preloaded - 1,200 employees, for Chapter 49ecommerce_lg loadable on demand - 2,000,000 orders, for Part VIIIpgAdmin, DBeaver, DataGrip, PyCharm and the VS Code SQL extensions:
| Setting | Value |
|---|---|
| Host | localhost |
| Port | 5432 |
| Database | pg1000 |
| Username | book |
| Password | book |
Or a shell: docker exec -it <container> psql -U book -d pg1000
The notebooks are deliberately problems, not answers. You will remember a pattern you worked on for ten minutes; you will not remember one you read.
docker exec -it <container> load-large-dataset
About three minutes and 850 MB. Index selection, partition pruning and BRIN cannot be demonstrated on five thousand rows.
docker exec -it <container> python3 /opt/verify_env.py
Prints the collation, the settings that decide execution plans, and the row counts. Paste its output into any errata report.
| Tag | What it is |
|---|---|
1.1 | pinned release - use this one |
latest | most recent release |
Released through the build workflow for linux/amd64 and linux/arm64, so
Apple Silicon runs natively.
Full source and setup guide: https://github.com/bitoollearner/postgresql-1000-examples
PostgreSQL: 1,000 Examples on Amazon Kindle
MIT. Image contents include third-party software under their own licenses. Book content is copyright (c) 2026 Bi Learner - available on Amazon Kindle.
Content type
Image
Digest
sha256:c08223680…
Size
322.2 MB
Last updated
1 day ago
docker pull bilearner/postgres1000-practice