Skip scan
nbtree skip scan and multi-column ScalarArrayOp index scans, with follow-up fixes.
Versions
- PostgreSQL 19 · shipped · improved · moderate · 3 commits · +4k / -3.8k lines
- PostgreSQL 18 · shipped · new · major · 17 commits · +7.5k / -3.2k lines
- PostgreSQL 17 · shipped · improved · major · 6 commits · +3.6k / -610 lines
Threads
- BUG #19917: nbtree skip scan leaks one copy of a pass-by-reference skip array element per rescan
- B-tree index scan ~2x slower on PG18 vs PG17 for skewed equality-prefix + range-condition lookups, with essentially the same plan
- Simplifying how nbtree represents array scan keys
- nbtree _bt_set_startikey row compare test coverage
- [PATCH] Add regression tests for btree skip scan support functions
- Fix size estimation for parallel B-Tree scans with skip arrays
- Minor _bt_checkkeys comment improvements
- Fix comments on _bt_skiparray_strat_increment/decrement
- Moving _bt_readpage and _bt_checkkeys into a new .c file
- Fully documenting the design of nbtree row comparison scan keys
- Postgres: Queries are too slow after upgrading to PG17 from PG15
- Adding skip scan (including MDAM style range skip scan) to nbtree
- Adding support for Row Compares to nbtree startikey optimization
- BUG #19049: Assert failure when using skip arrays on an index key with DESC order
- Re: Adding skip scan (including MDAM style range skip scan) to nbtree
- Showing primitive index scan count in EXPLAIN ANALYZE (for skip scan and SAOP scans)
- Limiting overshoot in nbtree's parallel SAOP index scans
- Making Row Comparison NULL row member handling more robust during skip scans
- Inefficient nbtree behavior with row-comparison quals
- GIN and hash index scans show "Index Searches: 1" for unsatisfiable quals, unlike nbtree and GiST
- Bug in nbtree SAOP scans with non-required arrays, truncated high key
- Moving nbtree preprocessing code into a new .c file
- Scrollable cursors that use an nbtree index scan are subtly broken with array keys (bug affecting 17+)
- Improve EXPLAIN output for multicolumn B-Tree Index
- bt Scankey in another contradictory case
- Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan
- Issue with "start another primitive scan" logic during nbtree array advancement
- Assert failure in _bt_preprocess_array_keys
- Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)
- Index range search optimization
- Fix a typo in _bt_readpage
- Naive handling of inequalities by nbtree initial positioning code
- MDAM techniques and Index Skip Scan patch
- Index Skip Scan (new UniqueKeys)
- Generic Index Skip Scan
- RE: Index Skip Scan
- Index Skip Scan
- Index Skip Scan - attempting to evalutate patch