What is a covering index, and what is an Index Only Scan?

When can a query retrieve everything it needs from an index without reading the table? Why does PostgreSQL sometimes access table rows even during an Index Only Scan, and how does VACUUM affect this? How does covering work in MySQL with InnoDB?

ExplainIndexesSeniorBackendData Engineer