- 68lessons
- 5guided projects
- 8module checkpoints
- 1.4hours of video
What you'll learn
- Design tables with deliberate types, keys and constraints and evolve them with safe migrations.
- Write lateral joins, CTEs, window functions, upserts and MERGE.
- Prevent lost updates, write skew and deadlocks under MVCC.
- Read EXPLAIN ANALYZE output and justify each index with evidence.
- Apply least-privilege roles and row-level security and prove recovery with a restore drill.
Skills you'll gain
- Workspace
- connections
- Schema
- constraints
- Queries
- relationships
- Transactions
- concurrency
- Indexes
- plans
- JSON
- advanced types
- Roles
- restore lab
Tools you'll use
- PostgreSQL 18
- psql
- EXPLAIN ANALYZE
- jsonb and full-text search
- pg_hba.conf
- PostgreSQL driver
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 3 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 3
Workspace, schema and queries
Run PostgreSQL 18, design constraint-first tables and write advanced queries.
You build: Constraint-first schema and reporting and sync queries.
- 02
Modules 4 to 5
Concurrency and plans
Reason about MVCC and locking, then read plans and design indexes.
You build: Concurrency lab notebook and an index and plan review at one million rows.
- 03
Modules 6 to 8
Advanced types, security and project
Use jsonb and advanced types, secure the database and prove restore, then deliver the project.
You build: Secured database with a proven restore.
Full curriculum
8 modules and 68 lessons, 38 to 64 hours of study
01Workspace and connections7 lessons, 3 to 5 hours
Lessons
- Choosing a supported PostgreSQL major version
- Starting a disposable server and finding its data directory
- Connecting with psql and reading the connection state
- Connection strings and environment variables without leaking passwords
- Running repeatable psql scripts
- Schemas and the search_path
- Inspecting a database with information_schema and pg_catalog
After this module you can
- Select a supported PostgreSQL major version from the project's versioning policy and prove the running server's version with SQL.
- Start a throwaway PostgreSQL server, identify the port and data directory it uses, and stop and discard it cleanly.
- Answer structural questions about a database by querying information_schema and pg_catalog rather than guessing.
02Schema and constraints9 lessons, 4 to 6 hours
Lessons
- Choosing numeric and text types deliberately
- Dates and times with timestamptz
- Identity columns, sequences and UUID keys
- NOT NULL, defaults and generated columns
- CHECK constraints and domains
- Unique constraints, partial unique indexes and NULLs
- Foreign keys and referential actions
- Exclusion constraints and temporal keys
- Evolving a schema with ALTER TABLE safely
After this module you can
- Pick integer, bigint, numeric, text and boolean types for given columns and justify each choice with a range or precision fact.
- Store instants with timestamptz, explain how session time zone affects display, and compute durations with interval.
- Apply schema changes in safe steps, using NOT VALID constraints, backfills and lock awareness to avoid long blocking.
03Queries and relationships9 lessons, 4 to 6 hours
Lessons
- Lateral joins for top-N per group
- Set operations for reconciliation
- EXISTS, IN and the NOT IN trap
- Common table expressions and recursive queries
- Window functions: ranking and running totals
- Window frames, LAG and LEAD
- Filtered aggregates, GROUPING SETS and ROLLUP
- Upserts with INSERT ... ON CONFLICT and RETURNING
- MERGE for conditional insert, update and delete
After this module you can
- Use JOIN LATERAL to return the latest N related rows per parent row and explain why a plain join cannot.
- Compare two row sets with UNION, INTERSECT and EXCEPT and choose between the ALL and distinct forms.
- Synchronise a target table from a source using MERGE and report each action taken with RETURNING.
04Transactions and concurrency8 lessons, 4 to 6 hours
Lessons
- Transaction blocks, rollback and savepoints
- MVCC row versions and snapshots
- Read Committed behaviour and non-repeatable reads
- Repeatable Read, Serializable and retry loops
- Row locks with SELECT FOR UPDATE and SKIP LOCKED
- Lost updates and optimistic concurrency
- Deadlocks, lock order and timeouts
- Watching locks with pg_stat_activity and pg_locks
After this module you can
- Group statements in BEGIN/COMMIT, recover from a failed statement with savepoints, and predict which changes survive.
- Explain how PostgreSQL keeps multiple row versions so readers do not block writers, and observe version metadata.
- Find which session blocks which and what it is waiting for using the monitoring views.
05Indexes and plans9 lessons, 4 to 6 hours
Lessons
- Reading an EXPLAIN plan
- EXPLAIN ANALYZE, BUFFERS and estimate errors
- B-tree indexes: column order and skip scan
- Covering and partial indexes
- Expression indexes and sargable predicates
- Planner statistics, ANALYZE and extended statistics
- Join algorithms: nested loop, hash and merge
- BRIN indexes for append-ordered tables
- The cost of indexes and finding unused ones
After this module you can
- Read an EXPLAIN tree from the innermost node outward and state the scan, join and cost fields of each node.
- Run EXPLAIN ANALYZE safely, read actual times, loops and buffer counts, and spot large estimate-versus-actual gaps.
- Measure the write overhead of indexes, find unused indexes with statistics views, and build indexes without blocking writes.
06JSON and advanced types9 lessons, 4 to 6 hours
Lessons
- jsonb documents and containment operators
- Indexing jsonb with GIN
- jsonpath and SQL/JSON query functions
- Shredding documents into rows with JSON_TABLE and jsonb_to_recordset
- Arrays and unnest
- Enums and lookup tables for fixed value sets
- Range and multirange types
- Full-text search with tsvector and tsquery
- Choosing between jsonb and relational columns
After this module you can
- Store documents as jsonb and extract or test them with ->, ->>, #>>, ? and @>.
- Create a GIN index on jsonb and know which operators each operator class supports.
- Decide which fields stay as columns and which go in jsonb, and protect jsonb with constraints.
07Roles and restore lab9 lessons, 4 to 6 hours
Lessons
- Roles, login and group membership
- GRANT, REVOKE and default privileges
- Least-privilege roles for migrations and the application
- Row-level security policies
- Authentication, pg_hba.conf and password hashing
- Logical backups with pg_dump and pg_restore
- Restore drills and verification
- Physical backups, WAL and point-in-time recovery
- Vacuum, dead tuples and autovacuum monitoring
After this module you can
- Create login and group roles, grant membership, and explain how privileges inherit.
- Grant and revoke privileges on schemas, tables and sequences, and set default privileges for future objects.
- Explain why dead row versions accumulate and monitor vacuum activity using the statistics views.
08Application database project8 lessons, 4 to 6 hours
Lessons
- Specifying access patterns and invariants
- Versioned SQL migrations with a schema_migrations table
- Generating realistic seed data with generate_series
- Parameterized queries, pooling and connection lifecycle from code
- Transactional service functions with retry
- Index and plan review for the hot path
- A constraint and concurrency test suite
- Restore proof, runbook and demonstration
After this module you can
- Turn an application brief into a list of entities, access patterns and invariants that drive schema and index decisions.
- Apply ordered migration files exactly once using a version table and run them transactionally.
- Package the project with setup instructions, a restore drill and a runbook, and demonstrate it to a trainer.
What you'll build
5 guided projects along the way, then a final project.
Constraint-first schema for a booking domain
after module 2Reporting and sync queries over the schema
after module 3Concurrency lab notebook
after module 4Index and plan review at scale
after module 5Secured database with proven restore
after module 7
Final project
Choose one: an event ticketing database, a field-service scheduling database or a community lending database.
What you submit
Repository with migrations, seed generator, tests, README, runbook and plan review; at least six constraint tests and one concurrent race test; backup, restore and restart evidence.
How it's reviewed
Rubric on schema and constraints, queries and transactions, and indexes and plans, plus a live cold start, migrate, seed, test, backup, restore and questions.
Where you'll use it
- Diagnose a blocking session and fix the transaction that causes it.
- Set up roles and row-level security so each tenant sees only its own rows.
Roles that use these skills
- Database developer
- Backend developer
- Database administrator (junior)
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
Which PostgreSQL version is used?
PostgreSQL 18, run locally as a native install or container.
Do I use a production server?
No. Shared or production servers are never used.
Can I join from MySQL or SQLite?
Yes, with equivalent experience and a passed diagnostic.
Be first in when PostgreSQL Database Development opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
