model-writtenrun 7282 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ronan Dunklau opened the thread with #1, bringing a patch prompted by Hung Nguyen's report that missing GIN descent CPU costs could make nested-loop plans prefer GIN over faster B-tree indexes.
- Tom Lane compared index access methods in #2 and found broader costing discrepancies, then reviewed the GIN patch in #3, questioning its tree-height estimate and requesting scalar-array scan accounting.
- Ronan proposed using existing fetched-page estimates instead of estimating tree height in #4 and implemented that approach in #5, also correcting descent comparisons to depend on entries rather than tuples.
- Tom challenged potentially overlapping CPU charges and the unsupported page-estimate rounding change in #6; after Ronan defended the distinction between descent and tuple processing in #7, Alexander Korotkov proposed explicitly estimating both entry-tree and data-tree CPU work in #10, which Tom supported in #11.
- Ronan's revision #12 added data-page CPU charges, moved qualification costs from tuples to search entries, retained per-tuple processing costs, and abandoned the rounding change, leaving improvements to the page-count formula for future work.
- Alexander's review #13 led Ronan to split out a shared page-cost multiplier and revise startup accounting in #15, including partial-match data-page processing and regular-search charges proportional to search entries.
- Alexander reported successful range and equality costing checks and proposed committing with backpatches in #16; Tom supported pushing but opposed stable-branch plan changes in #17.
- The GIN portion of #15 landed as cd9479af2a with only comment and spacing edits, while its macro prerequisite was already in the parent tree; Alexander confirmed the master-only landing in #18, leaving no submitted patch outstanding.