model-writtenrun 6074 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed recording surviving partitions in RelOptInfo.live_parts to accelerate planner loops over heavily pruned tables and support better ordered-scan decisions, initially attaching only the bitmap optimization #1.
- Amit Langote supported the proposal, recalling that a similar bitmap had previously seemed insufficiently justified by the planner-loop optimization alone and suggesting that additional uses strengthened its case #2.
- David expanded the series to use a precomputed interleaved_parts bitmap for LIST partitions and permit ordered RANGE scans when the DEFAULT partition was pruned; he deliberately left out tracking each interleaved partition's partners to keep the checks cheap #3.
- David refined the interleaving calculation so a lone partition was not marked interleaved and NULL-accepting partitions with other values were detected more robustly #4.
- Amit requested clearer bitmap-index documentation and asked about computing interleaving for join relations #5; David incorporated the wording changes but deferred join-relation optimization because existing callers only used simple relations and broader support needed separate analysis #6.
- Zhihong Yu identified a typo and repetitive comments #7, David adjusted the wording #8, and Amit accepted the scope decision and welcomed the planner-loop improvement #9.
- David reported approximately 32% higher throughput for a query selecting one of 8192 hash partitions with the revised series, using CPU affinity to obtain stable measurements #10.
- David committed the bitmap component of #6 unchanged as 475dbd0b71 and the ordered-scan component with comment edits as db632fbca3, then confirmed both had landed #11.
- Nearly two months later, Amit discovered that merged partition bounds left interleaved_parts uninitialized and supplied a NULL-initialization fix #12; David retained the fix and documented that join relations intentionally leave the field NULL #13.
- Amit approved the revised fix #14, which landed unchanged as 16239c5fdf; David's final confirmation leaves both original optimizations and the follow-up fix committed, with join-relation optimization outside this thread's completed scope #15.