PostgreSQL 18 B-tree skip scan cuts order query time from 393 ms to 2.4 ms
PostgreSQL 18 introduces B-tree skip scan, allowing multicolumn indexes to be used effectively even when the first column lacks strict equality conditions. Testing on a ten million row orders table demonstrates that skip scan can reduce query times from hundreds of milliseconds to a few milliseconds, though performance degrades as the estimated number of distinct values in the first column approaches the index's page count. Open article →