Skip to content
Pebellslearn by building

The course

PostgreSQL

Learn how PostgreSQL works as a system, not just a query language. You will install a server, connect with psql, tune its settings, give people the right access and take backups you can actually restore — all on one small bike-rental database.

Ready to learn

Your path through the ideas

Inside the course

7 modules · 23 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02Introduction3 lessons

See what a relational database really is, where it shines and where it struggles, and how PostgreSQL compares with NoSQL stores and with other relational systems.

  1. 01Relational Databases12 min
  2. 02PostgreSQL vs NoSQL12 min
  3. 03PostgreSQL vs Other RDBMS12 min
03Object Model4 lessons

Learn the nesting of cluster, database, schema and table, the relational vocabulary behind tables, rows and columns, and how data types, domains, constraints and NULL keep the data honest.

  1. 01Clusters, Databases and Schemas12 min
  2. 02Tables, Rows and Columns12 min
  3. 03Data Types and Domains12 min
  4. 04Constraints and NULL12 min
04High Level Database Concepts4 lessons

Understand transactions and ACID, how MVCC lets readers and writers work side by side, how the write-ahead log makes commits survive crashes, and how a query travels from text to results.

  1. 01Transactions and ACID14 min
  2. 02MVCC15 min
  3. 03The Write-Ahead Log14 min
  4. 04How a Query Is Processed15 min
05Installation, Setup and Configuring5 lessons

Install PostgreSQL from packages or Docker, connect and look around with psql, start and stop the server with the right tool, and change settings, logging and statistics without surprises.

  1. 01Installing with a Package Manager12 min
  2. 02Running PostgreSQL in Docker12 min
  3. 03Connecting with psql12 min
  4. 04Starting and Stopping the Server12 min
  5. 05Configuration, Logging and Statistics15 min
06Security3 lessons

Give every person and program its own role, open exactly the privileges each one needs, and control who may connect and how they prove it with pg_hba.conf.

  1. 01Roles12 min
  2. 02Granting and Revoking Privileges14 min
  3. 03pg_hba.conf and Authentication15 min
07Backups and Recovery4 lessons

Make logical backups with pg_dump and pg_dumpall, restore them in the right order with pg_restore, take physical backups with pg_basebackup for point-in-time recovery, and validate that every backup really works.

  1. 01Logical Backups with pg_dump14 min
  2. 02Restoring with pg_restore and pg_dumpall14 min
  3. 03Physical Backups with pg_basebackup15 min
  4. 04Validating Backups14 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.