model-writtenrun 9379 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita demonstrated that costing a presorted foreign scan with local statistics could recompute an unclamped retrieved-row estimate, and proposed caching and reusing the original estimate alongside relation costs in #1.
- The initial patch also reused cached rows and width estimates, removed redundant storage of grouped-relation row estimates, and corrected grouped-relation width estimation in #1.
- Etsuro Fujita supplied editorial refinements and a commit message in #2, announcing a stricter assertion that was accidentally absent from the attachment.
- Etsuro Fujita corrected that omission in #3, changing the assertion to require at least one retrieved row while retaining the existing implementation.
- Etsuro Fujita committed #3 unchanged apart from rebasing as 08d2d58a2a and confirmed completion in #4; the fix was applied only to HEAD to avoid destabilizing existing plan choices.