B-tree suffix truncation
Making heap TID a B-tree key tiebreaker and truncating pivot tuple suffixes (heapkeyspace, nbtree version 4). Introduced in PostgreSQL 12.
Versions
- PostgreSQL 17 · shipped · improved · moderate · 1 commit · +210 / -149 lines
Threads
- Optimizing "boundary cases" during backward scan B-Tree index descents
- Minor bug in suffix truncation of non-key attributes from INCLUDE indexes
- Thoughts on nbtree with logical/varwidth table identifiers, v12 on-disk representation
- "Classic" nbtree suffix truncation prototype
- BUG #15896: pg_upgrade from 10-or-earlier: TRAP: FailedAssertion(»!(metad->btm_version >= 3)«
- _bt_split(), and the risk of OOM before its critical section
- ERROR: failed to add item to the index page
- Pathological performance when inserting many NULLs into a unique index
- Making all nbtree entries unique by having heap TIDs participate in comparisons
- Fixing findDependentObjects()'s dependency on scan order (regressions in DROP diagnostic messages)
- Safely calling index_getprocinfo() while holding an nbtree exclusive buffer lock
- On-disk compatibility for nbtree-unique-key enhancement
- "Write amplification" is made worse by "getting tired" while inserting into nbtree secondary indexes (Was: Why B-Tree suffix truncation matters)
- Why B-Tree suffix truncation matters
- nbtsort.c performs unneeded (though harmless) truncation
- [WIP] [B-Tree] Keep indexes sorted by heap physical location