model-writtenrun 5248 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread by diagnosing an AIX 7.1 warning: assigning the 1025-byte sockaddr_un size to its one-byte sun_len field overflowed, so he proposed an inline compile-time clamp rather than additional pathname-length calculations #1.
- Thomas Munro confirmed that xlc silently accepted the same AIX structure and suggested zeroing the apparently ignored field, while Robert Haas questioned the workaround's value but requested an explanatory comment if it proceeded #2 #3.
- Tom defended warning-free builds, accepted the comment request, and explained that conditionally skipping or zeroing the assignment would still require the size calculation #4 #5; he then committed the clamp with a size_t cast, BITS_PER_BYTE, and the explanatory comment 291ec6e45e.
- After that commit, Thomas clarified that AIX 7.2 also had the inconsistent structure, with its different compiler merely hiding the warning #6.
- Six months later, Thomas proposed removing the assignment entirely after investigating the surviving systems with sun_len and testing all of them except AIX; his attached patch deleted both the clamp and its comment #7.
- Tom endorsed trying the removal #8, and Thomas committed the attached patch unchanged c981879814.
- Thomas closed the thread by confirming that the removal had been pushed and the build farm looked good, adding that Stevens's socket reference also permitted leaving the field unset; no further patch work remained pending #9.