model-writtenrun 5557 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut opened the thread by reporting an apparently unnecessary OpenLDAP crash warning on macOS, while confirming that an unpatched affected version really did crash; he proposed removing the warning or suppressing it on macOS #1.
- Tom Lane opposed suppressing the warning merely for macOS because Apple's bundled OpenLDAP was old and deprecated, and he preferred encouraging installation of a maintained version #2.
- Peter then found that using Homebrew OpenLDAP still left libpq linked to Apple's LDAP framework #3; Tom diagnosed configure finding modern libldap from one installation and legacy libldap_r from another #5.
- Tom proposed detecting OpenLDAP 2.5 or newer by linking against ldap_verify_credentials, then skipping the libldap_r probe for those versions, avoiding dependence on matching headers #6.
- Separate testing with MacPorts exposed crashes in LDAP TLS tests #4; Tom traced the failure into SSL cleanup and suspected an upstream OpenLDAP problem, which the configure patch did not address #7.
- Tom submitted the configure patch after testing OpenLDAP 2.4 and 2.6, noting that he lacked a 2.5 installation #8, and Peter reported successful testing and approved the approach #9.
- Peter accepted leaving the original warning intact after discovering that his third-party compiler hid Apple's deprecation warnings #10; Tom deferred committing until the release freeze lifted #11, then landed #8 unchanged as aff45c879e with backports to all supported branches and confirmed completion #12.
- Months later, Andres Freund proposed using libldap_r for both frontend and backend when appropriate #13; Tom recalled concerns about pulling pthreads into the backend and questioned the need #14, while Andres cited the original mixed-library crash warning and duplication costs #15, leaving that broader linking change unresolved at the thread's end.