model-writtenrun 7816 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- James Hilliard opened the thread with a macOS pwritev runtime failure and an inline patch adding an availability-warning error flag and a header-aware compile probe in configure and configure.ac #1.
- Tom Lane opposed replacing standard Autoconf probes and favored selecting an SDK matching the host OS, while James argued that MACOSX_DEPLOYMENT_TARGET, rather than SDK version alone, determines usable symbols #2 #3 #4.
- James’s SDK command output showed that the default query returned an unversioned symlink to the host-compatible SDK, whereas the explicit macOS query selected a newer SDK; Tom diagnosed that rejecting the unversioned path caused the wrong fallback #5 #6.
- Tom posted a src/template/darwin patch that dereferenced the symlink while retaining a version-specific PG_SYSROOT, explaining that explicit sysroots also help extension compatibility and configure file checks #8.
- James continued to question the deployment-target behavior and SDK-command precedence, but Tom maintained that the default should use a native SDK; the attached patch then landed unchanged as 9d23c15a03, with backports to supported releases #9 #10 #11.
- Further investigation distinguished Xcode’s SDK from the Command Line Tools SDK, and Sergey Shinderuk traced xcrun’s search for an SDK whose metadata matches the host OS version #12 #13 #15.
- Tom explicitly declined to maintain replacement Autoconf probes for non-native SDKs, while James said deployment-target support still needed fixing and undertook to find a cleaner approach #16 #17.
- Sergey reported a successful build using only Xcode on a clean Catalina installation, while Tom tested a Command Line Tools-only build and recommended documenting that smaller installation as the preferred setup #18 #19.
- James linked a revised feature-detection proposal posted elsewhere, explaining that including sys/uio.h was necessary to expose deployment-target availability annotations #21.
- Tom committed the discussion-derived documentation update as 50bebc1ae1, recommending Command Line Tools, using xcrun --show-sdk-path, and documenting explicit sysroots and PG_SYSROOT=none #13 #19.
- After both commits, Sergey corrected Tom’s claim that Xcode lacked necessary tools and explained Homebrew’s preference for Command Line Tools, while James disputed whether Homebrew’s compatibility constraints justified PostgreSQL’s SDK policy #22 #23 #24 #25.
- The thread ended with the sysroot fix and documentation committed, but deployment-target-aware feature detection still disputed: James demonstrated that Autoconf’s generated pwritev declaration omitted Apple’s availability annotations, and no corresponding configure fix landed among these candidates #26.