PG

PostgreSQL — Advanced

AdvancedPostgreSQL 16+ · 9 lessons

Run PostgreSQL like a professional: tune queries with the right index types, handle concurrency and locking safely, automate with triggers, add full-text search, partition large tables, lock data down with roles and row-level security, and operate databases in production. Uses the school database from the Intermediate track.

Lessons

  1. 1Query Tuning & Index TypesEXPLAIN (ANALYZE, BUFFERS), partial, expression, covering and BRIN indexes.Solution4-question quiz
  2. 2Concurrency, MVCC & LockingHow PostgreSQL handles simultaneous users, lost updates, row locks and SKIP LOCKED queues.Solution4-question quiz
  3. 3Writable CTEs & LATERAL JoinsChain data changes in one statement and run a subquery once per row.Solution4-question quiz
  4. 4Triggers & Audit LogsRun functions automatically on INSERT, UPDATE or DELETE — timestamps and audit trails.Solution4-question quiz
  5. 6Table PartitioningSplit huge tables by range so queries and maintenance touch only the data they need.Solution4-question quiz
  6. 7Roles, Privileges & Row-Level SecurityLeast-privilege access with roles and GRANT, and per-user row filtering with RLS.Solution4-question quiz
  7. 8Backups, Maintenance & Monitoringpg_dump and restore, migrations, VACUUM, connection pooling and health queries.Solution4-question quiz
  8. 9Schema Migrations Without DowntimeChange a live database safely: versioned migrations, lock timeouts and the expand-and-contract pattern.Solution4-question quiz
Start with lesson 1 →
Ask AI