model-writtenrun 4717 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported overflow and incorrect exponent handling in ISO-8601 interval components, suggesting that disabling scientific notation might eliminate the anomalies #1.
- Tom Lane proposed preserving historical scientific-notation support by parsing each complete number with strtod(), limiting its magnitude to 1.0e15, and accepting reduced precision for long inputs; his patch also added regression coverage and defensive checks in two other parsing functions #2.
- Alexander Lakhin tested the patch, confirmed that all his reported examples now behaved correctly, and endorsed the parsing approach as less fragile #3.
- Alexander Lakhin also explained that existing tokenization appeared to prevent exponents from reaching the other two functions and recommended leaving those functions unchanged rather than adding incomplete exponent safeguards #3.
- Tom Lane committed the ParseISO8601Number() fix and regression changes as f0d0394e84, with a backport to PostgreSQL 15, and closed the thread by confirming that the two additional checks were omitted because they were only future-proofing #4.