model-writtenrun 3219 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Stan Hu reported that macOS SDK 15 caused conflicting regex typedefs during compilation in #1, then traced the regression to changed system-header guards and supplied an inline workaround in #2.
- After questioning the build setup, Aleksander Alekseev reproduced the failure with the beta Command Line Tools, verified Stan's workaround, and attached it in #4, while suggesting pg_-prefixed types as an alternative.
- Andres Freund proposed reducing xlocale.h exposure through pg_locale.h in #5; Tom Lane favored asking Apple to revert the change and warned about extension compatibility in #6, and Stan confirmed an Apple bug report and outreach in #7.
- Thomas Munro argued that system headers could legitimately expose these reserved names and that matching include guards had only accidentally prevented collisions in #8; Tom then proposed including the system regex.h first and redirecting standard type names to PostgreSQL-prefixed types in #9.
- Thomas implemented that design in #10, replacing the guard workaround with explicit system-header inclusion, macro undefinitions, renamed types, and compatibility aliases; Aleksander confirmed successful testing on macOS SDKs 15 and 14 and Linux in #11.
- Tom considered moving the compatibility machinery into regcustom.h in #12, but withdrew the suggestion because regex.h does not include that header in #13.
- Thomas reported passing CI and explained the Windows exclusion in #14; configurable prefixes and broader macro renaming were left out, with Tom rejecting unnecessary complexity and extension API breakage in #15.
- Thomas committed #10 as 2a5ef09830 with only comment, formatting, typedef-list, and attribution changes, back-patched the fix to supported branches, and closed the thread by announcing the push in #16.