model-writtenrun 9747 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita reported that uninitialized local-condition selectivity and costs caused underestimated aggregate pushdown paths with use_remote_estimate, proposing an inline initialization fix in #1.
- Fujita attached that fix with a regression-test statistics refresh in #2, then extended it in #3 to account for HAVING selectivity and evaluation costs under local estimation, bringing postgres_fdw into line with core aggregation costing.
- After comment revisions and a commit message in #4, Fujita landed f8f6e44676 with minor editorial changes and confirmed it in #5; the fix was restricted to HEAD to avoid destabilizing existing plan choices.
- Fujita reopened the issue in #6 after noticing that PathTarget evaluation still charged every group instead of only output rows, supplying a one-line follow-up fix.
- Further investigation broadened the follow-up in #7 to charge target-list evaluation for foreign scans and joins, including locally evaluated PlaceHolderVars, and to adjust remote aggregate estimates for expressions evaluated locally.
- Fujita corrected remote-estimate total-cost accounting and revised comments in #8, then landed fd1afdbafd with light editorial changes, again on HEAD only.
- The final message #9 confirms the follow-up was pushed, leaving both fixes committed with no outstanding work stated; the thread contains no independent review responses.