PostgreSQL Course
PostgreSQL is a free, open-source relational database known for taking standards and correctness seriously — and for shipping features other databases treat as add-ons, like a genuine JSON document type, window functions, and a real extension system, as core parts of the engine.
What you'll learn
This course assumes you already know general SQL — SELECT, WHERE, joins, aggregate functions, and the rest — covered in the site's SQL course. Rather than repeating that ground, every lesson here focuses on what's actually distinctive about PostgreSQL: its command-line client psql, a richer type system than plain SQL gives you, reading query plans, storing and querying JSON documents inside a relational table, window functions for running totals and rankings, recursive queries, and how permissions and extensions work.
Every example shows a real query run through psql alongside its exact console output, formatted the way PostgreSQL's own client actually prints results.
Lessons
- Introduction
- Data Types
- Creating Databases & Tables
- Indexes & EXPLAIN ANALYZE
- JSONB & Semi-Structured Data
- Views & Materialized Views
- Window Functions
- Common Table Expressions
- Roles & Permissions
- Extensions
SELECT, JOIN, and GROUP BY, begin with Introduction and go in order; later lessons on window functions and CTEs lean on the JSONB and views lessons that come before them.