PostgreSQL
Learn PostgreSQL by running it: schema design and constraints, joins and aggregates, CTEs and window functions, JSONB, upserts, EXPLAIN and indexes, transactions and isolation, roles, row-level security and backups, all executed on PostgreSQL 16.
What you'll learn
- Design PostgreSQL tables with appropriate types, keys and constraints, and handle NULLs correctly.
- Query data with joins, aggregation, CTEs and window functions.
- Store and query semi-structured data with JSONB, and write upserts with ON CONFLICT.
- Read EXPLAIN plans and choose B-tree, composite, partial and GIN indexes.
- Use transactions, isolation levels and row locks to keep data correct under concurrency.
- Secure and operate a database with roles, row-level security, backups and safe migrations.
Syllabus
PostgreSQL Foundations
Tables, Keys and Constraints
Querying Data
Window Functions, JSONB and Upserts
EXPLAIN and Indexes
- Reading EXPLAIN and B-Tree Indexes
- Composite and Partial Indexes
- GIN Indexes for JSONB, Arrays and Text Search