model-writtenrun 8925 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Japin Li reported redundant timestamp2tm() calls and submitted a patch removing them from the day-of-week and day-of-year branches of both timestamp extraction functions in #1.
- Tom Lane confirmed the redundancy in #2, then traced it to relocation of the switch cases and decided to expand missing regression coverage in #3.
- After Japin Li offered further help in #4, Tom Lane reported that testing dates outside the existing restricted range exposed an independent BC ISOYEAR error; he chose corrections in timestamp[tz]_part() to preserve the year-zero convention required by other date2isoyear() callers in #5.
- Tom Lane committed the original removal unchanged, together with expanded regression tests, as 26ae3aa80e, crediting Japin Li for the report and patch and backpatching the change to supported branches.
- The separate BC ISOYEAR correction landed as 1a3efa1eb6 and was also backpatched; although the final message #5 preceded both commits, the supplied commit history shows both issues resolved.