Glossary — in plain language

Heap


In plain English

The heap is where PostgreSQL physically stores the actual rows of a table, in no particular order, inside data pages. Indexes point into the heap to find rows quickly.

Why it matters

Knowing the heap exists explains the difference between an index scan (use the index, then jump to the heap) and an index-only scan (answer from the index alone). It also explains heap-only-tuple (HOT) updates and why ordering needs CLUSTER.

Was this helpful?

← Browse the full glossary