b-tree · shipping · also B tree, BTree

B-tree

A B-tree is a balanced multiway search-tree family that groups ordered keys into nodes and keeps leaves at a common depth.

Related Observatory article: Read on hesela.com

Many keys fit in one node, allowing a page-oriented index to branch more widely than a binary search tree. Implementations differ in whether records appear in internal nodes or only at leaves; B-tree is often used as a family name. [1]

PostgreSQL B-tree indexes support equality, range predicates and ordered retrieval. An index's ordering does not establish transaction visibility or verify the stored payload; an index-only scan has additional requirements. [2] [3]

A classical B-tree can keep entries in internal nodes and leaves, whereas a B+ tree places application records or their references at leaves. [4]

PostgreSQL 18 calls its access method B-Tree but documents leaf tuples pointing to table rows and internal tuples pointing to lower levels. Its pages are linked at each level, and splits can propagate toward the root. The product name alone does not specify classical record placement. [5]

Relations

related
Bitmap index, B-link tree, Index-only scan (PostgreSQL), B+ tree, B-epsilon tree, Log-structured merge-tree, SQLite WITHOUT ROWID table, Bw-tree, Partial index, Covering index, Clustered index, Secondary index, Composite index, Hash index (PostgreSQL), Cache-oblivious algorithm

Citations

  1. Lehman and Yao (1981), Efficient Locking for Concurrent Operations on B-Trees, TODS 6(4), 650-670; DOI 10.1145/319628.319663 (accessed 2026-10-22)
  2. PostgreSQL 16: Index Types, B-tree supported operations (accessed 2026-10-22)
  3. PostgreSQL 16: Index-Only Scans and Covering Indexes (accessed 2026-10-22)
  4. Carnegie Mellon 15-445/645, Fall 2024: Indexes & Filters I, sections 2 and 4.5 (accessed 2026-10-22)
  5. PostgreSQL 18: B-Tree indexes, structure and page splits (accessed 2026-10-22)

Further reading

  1. Hesela: B-epsilon trees, B-tree foundations and observed page placement (accessed 2026-10-22)
Sources & caveats
  • Family-level definition; PostgreSQL-supported operations and index-only visibility requirements are scoped to version 16, and page-structure details to version 18.

JSON: /data/terms/b-tree.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. B-tree. Hesela. 2026-11-21. https://hesela.dev/terms/b-tree/