The CREATE INDEX page is better than most Postgres blog posts
Marcus Okafor@marcusokafor
Specifically the part on INCLUDE columns and partial indexes. Half the "advanced Postgres" content online is a worse retelling of this page.
Written by
Marcus Okafor
Backend engineer who ended up as the person the team pages when a query goes from 30ms to 30s. Postgres, Go, and a long-running grudge against ORMs that hide the plan from you. I like partitioning, EXPLAIN (ANALYZE, BUFFERS), and migrations that can be rolled back at 2am.
INCLUDE columns are the thing I wish I had known three years earlier. We had a covering index built by cramming columns into the key and wondering why writes were slow.