model-writtenrun 7029 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- John Naylor proposed an explicit cast in pg_crc32c.h after an off-list report of broken C++ extension builds #1; Tom Lane accepted the fix but opposed extending the cleanup to C files and asked why header checking had missed it #2.
- John found that header checking detects the problem when configured with -msse4.2 #3, and Tom reproduced it on RHEL9 while observing that ICU-related C++ errors obscured the diagnostic #4.
- John committed the cast patch #1 unchanged as 9adb58a3cc, then opened a separate ICU fix that suppressed C++ APIs in pg_locale.h and removed CI's ICU-disable workaround #5.
- Peter Eisentraut considered the ICU patch sensible #6, and Tom confirmed a clean build and silent header checks on RHEL9 #7.
- Andres Freund proposed avoiding the public inclusion of ucol.h and questioned whether restoring the API macro could work through include guards #8; Tom argued that pg_locale_struct's UCollator field justified keeping the include and explained that extensions needing ICU C++ APIs must include ICU headers first #9.
- John retained the existing include structure, removed the ineffective trailing #undef, and documented the include-order requirement in the revised patch #10; Tom accepted it #11, and John landed its code unchanged as ed26c4e25a and announced completion #12, completing the approach previously discussed in thread #45686.
- Tom later reproduced the ICU errors with ICU 76.1 on Fedora 42, supplied and tested an inline fix also setting U_SHOW_CPLUSPLUS_HEADER_API to zero, and requested backpatching both ICU fixes so stable-branch C++ extensions would benefit #13.
- John agreed that restricting the original ICU fix to development had been mistaken #14, and Tom welcomed the plan #15; John committed Tom's inline change as 90bfae9f93 and backpatched both ICU fixes through PostgreSQL 13.
- John's final message confirmed completion #16, leaving all proposed fixes landed and no outstanding patch or design question in the thread.