model-writtenrun 5662 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera proposed converting fastgetattr and heap_getattr into inline functions to silence Coverity false positives about assertions, also removing the obsolete DISABLE_COMPLEX_MACRO implementation #1.
- Michael Paquier found the logic sound but worried about compiler return-path warnings, so Alvaro posted a revision adding pg_unreachable() at the end of both functions #2 #3.
- Japin Li proposed simplifying heap_getattr by dropping its final else, but Alvaro preferred consistent explicit branching across both functions; Japin also questioned whether pg_unreachable() needed a following dummy return #4 #5 #6.
- Peter Eisentraut explained that compilers can recognize exhaustive if/else returns and endorsed the original style, leading Alvaro to omit the redundant pg_unreachable() calls and commit the original patch unchanged as e27f4ee0a7 #7 #8 #9.
- After the commit, Alvaro clarified why the comparator example did not establish a need for dummy returns, and Japin acknowledged the explanation while retaining some confusion; the conversion was fully committed with no further patch proposed #10 #11.