Free to read ยท Three levels
PostgreSQL: relational reasoning and dependable operations
A complete PostgreSQL theory course connecting accurate SQL with MVCC, indexes, JSONB, partitioning and recoverable operations.
Start learningIn this course
Learn through a synthetic quay logistics domain containing customers, bookings, parcels, shipments, inventory and scan events. Eighteen developed lessons progress from query correctness to concurrency, performance evidence and reliable service changes.
Each lesson provides explained SQL, reasoned expected results, cause/fix/prevention mistakes, worked exercises and official references. Examples are non-runnable because no isolated PostgreSQL engine was executed for this authoring task. They never require access to a configured application database.
What you will learn
- Design constrained schemas and deterministic reports with PostgreSQL semantics.
- Coordinate transactional writes, roles, indexes, vacuum and analytic SQL.
- Evaluate JSONB, partitioning, backup chains, replication and controlled migrations.
Your learning path
Three levels
Basic: relational foundations
Model valid facts and compose deterministic queries and scoped changes.
- PostgreSQL servers, sessions and schemas
- Types, constraints and generated identity
- SELECT, NULL ordering and pagination
- Joins and relational cardinality
- Aggregates and reporting stages
- Writes, RETURNING and conflict handling
Intermediate: concurrency and maintainable SQL
Coordinate snapshots, indexes, analytic queries, privileges and version cleanup.
- Transactions, MVCC and isolation
- Indexes and EXPLAIN plans
- Views, CTEs and window queries
- Roles, authentication and schema privileges
- VACUUM, autovacuum and planner statistics
- Locks, deadlocks and aborted transactions
Advanced: evidence and reliable operations
Plan performance, flexible data, partition lifecycle and recoverable change.
- Performance investigation and estimate quality
- JSONB data and index strategies
- Partitioning and data lifecycle
- Backup, restore and point-in-time recovery
- Replication, consistency and failover
- Operations, migrations and reliability
Who this is for
- Developers learning PostgreSQL application design and relational SQL.
- Engineers reviewing database concurrency, performance and recovery practices.
Before you start
- Basic familiarity with applications, files and tabular data.
- Read all SQL as theory; optional independent practice requires an explicitly disposable training database.