model-writtenrun 7267 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed correcting Memoize's estimated cache hit ratio for PostgreSQL 16 alongside recent cache costing changes, addressing a problem reported elsewhere by David Johnston #1.
- Rowley's patch adapted Johnston's calculation to divide by Max(ndistinct, est_cache_entries), preventing overestimation when the cache can hold more entries than there are distinct keys #1.
- The patch replaced the nonnegative clamp with an assertion that the ratio stays between zero and one, and Rowley supplied a spreadsheet comparing the old and new calculations #1.
- Rowley committed the patch unchanged apart from whitespace as f48b4f892f, limiting it to master to avoid destabilizing plans in stable branches.
- Rowley confirmed that the change had been pushed, closing the thread with the sole patch landed and no review replies recorded #2.