model-writtenrun 7146 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported incorrect money multiplication results and UBSan failures involving floating-point conversion overflow #1; Michael Paquier reproduced the problem #2, and Tom Lane identified missing overflow checks throughout cash.c #3.
- Alexander expanded his operator testing to cover other extreme inputs and found no additional UBSan anomalies beyond the enumerated problematic operators #4.
- Michael proposed removing money in favor of numeric #5, Bruce Momjian supported that direction #6, and David Rowley suggested a contrib module to preserve upgrade options for large existing tables #7.
- Tom explained that moving money into an extension would not automatically preserve the type OIDs required by pg_upgrade #8, while Jonathan S. Katz and Tom subsequently discussed deprecation and requiring users to rewrite money columns before upgrading #11 #12.
- Michael identified regression tests that used money only because it lacked hashing support and proposed tsvector as a substitute #15; Tom recommended bit or varbit because they seemed less likely to gain hashing support #16.
- Michael submitted the independent regression cleanup using varbit for non-hashable types, numeric for rule tests, generated strings instead of cash_words(), and timestamptz for a partition-boundary test #17.
- Jonathan challenged the assumption that btree_gin and btree_gist were rarely used #18, and Tom proposed staged deprecation, extension changes, and eventual core removal to accommodate upgrades #19.
- Jonathan raised the problem of users skipping major versions #20, and Michael advocated a longer deprecation period while expressing reservations about the cleanup's partition-boundary test #21.
- Michael committed the regression cleanup as 31acee4b66, retaining the other changes from #17 but omitting create_table because he remained unsure about that test; he announced plans for a separate deprecation discussion #22.
- Six months later, Nathan Bossart asked whether the promised deprecation discussion had occurred #23, then confirmed that the original overflow bug was fixed by 22b0ccd65d #24.
- The supplied attribution from thread #49757 establishes that Joseph Koshakow's July patchset #567153 supplied the overflow implementation, correcting the earlier attribution to this thread's discussion; 4f96281587 is the PostgreSQL 12 backport of that fix.
- At the thread's close, the regression cleanup had landed and the overflow bug had been fixed through work in thread #49757, while money removal remained unresolved and the partition-boundary cleanup remained omitted #22 #23 #24.