Lab operations
Capture a baseline
Record query text, parameters, PostgreSQL version, dataset profile, warm/cold-cache state, plan, planning/execution times, buffers, temporary I/O, and relevant wait events. Compare repeated runs; one timing is not evidence.
Useful views
SELECT * FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 20;
SELECT pid, state, wait_event_type, wait_event, query FROM pg_stat_activity WHERE state <> 'idle';
SELECT * FROM pg_stat_io;
SELECT relname, n_live_tup, n_dead_tup, last_analyze, last_autovacuum FROM pg_stat_user_tables;
Dataset reset
make reset only prints the destructive command. Volume deletion requires deliberate manual execution because it permanently removes the lab database.
Measurement caveats
Warm cache, concurrent work, checkpoints, autovacuum, background I/O, parameter values, and data growth can all change results. Preserve evidence before changing configuration or indexes.
See Local Docker for service lifecycle and reset instructions, or return to the curriculum to choose the next investigation.
Maintainers can execute every lab path against the disposable test dataset with make verify-labs. This includes solution files and is not the learner workflow.