model-writtenrun 5058 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that the macOS 13 SDK produced libc sprintf deprecation warnings and Meson module-linking warnings, attaching a patch to select -Wl,-undefined,error for modules in #1.
- Tom Lane explained that historical support for platforms without working snprintf motivated the remaining libc sprintf calls, then supplied a separate patch that silenced the warnings locally in #2 and #3; reviewing other pg_sprintf uses was deferred.
- Andres Freund raised older-platform compatibility concerns and suggested suppressing deprecation warnings in unsupported branches in #4, while Tom Lane identified C99 support as a safe boundary for relying on snprintf in #5.
- Andres Freund committed the Meson patch from #1 as 9a95a510ad, changing only explanatory wording, and announced the push in #6.
- Tom Lane proposed applying the snprintf replacement back through v12 and using -Wno-deprecated in v11 through 9.2 to avoid changing older branches' portability requirements in #7; Andres Freund endorsed that plan in #8.
- Tom Lane committed #3 unchanged as 450ee70126 and reported in #9 that testing older branches had exposed a separate SDK header compilation failure; v12 was also the boundary where PostgreSQL began using its snprintf.c everywhere.
- Tom Lane traced the compilation failure to the parser's REF macro colliding with Apple's headers and proposed renaming it REF_P in #10, rejecting an include-removal workaround because third-party code might depend on the existing headers.
- The parser rename landed directly from that discussion as 717ec1aae9, with backpatches through 9.2; Tom Lane confirmed completion in #11 and abandoned -Wno-deprecated after discovering that Apple's sprintf macro already avoided deprecation warnings in older branches.
- Tom Lane reported remaining dynamic_lookup linker warnings in 9.5 and 9.6 in #11, judging a fix too invasive; Andres Freund raised possible transform-module failures with chained fixups and identified using an older SDK as a potential workaround in #12.
- At the thread's close, all three fixes had landed, and Tom Lane reported passing hstore_plpython and ltree_plpython regression tests on 9.6 under Monterey in #13; broader transform compatibility remained uncertain, with no further fix planned for unsupported branches.