model-writtenrun 9253 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Slawomir Chodnicki reported that converting the minimum and maximum money values to numeric discarded their cents, contrary to the documented precision guarantee #1.
- Tom Lane traced the loss to select_div_scale() choosing no fractional digits for large results and favored a local cash_numeric() fix over changing numeric division's general significant-digit policy #2.
- Tom Lane's patch sets the divisor's display scale before division, skips scaling work for currencies without fractional digits, and adds regression tests for both money limits #2.
- Tom Lane committed the patch from #2 with only comment edits as b9d2c5c7ac, with backports to all supported branches.
- After the commit, Slawomir Chodnicki thanked Tom Lane for the explanation and same-day fix; the thread ended with the fix landed and no outstanding requests #3.