model-writtenrun 1737 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Gustafsson proposed preparing backend libpq's OpenSSL code for multithreading by passing certificate-error details through a Port member and replacing strerror with strerror_r, reporting tests across OpenSSL 1.1.1 through 3.5 in #1.
- Peter Eisentraut clarified the backend scope and pointed out that strerror_r still wrote into a shared static buffer in #2, while Michael Paquier supported removing the global callback state through Port in #3.
- Daniel retained the Port-based callback design and changed SSL error helpers to return allocated strings, with callers responsible for cleanup except on process-exit paths, in #4.
- Peter proposed a separate callback context to avoid circular Port references and cleanup concerns, and preferred eventual thread-local error storage over the expanded allocation API in #5; Daniel adopted the separate context and deferred the error-buffer work in #6.
- Peter approved the revised callback patch while suggesting removal of its typedef in #7; Daniel made that light edit and landed #6 as 9122ff65a1, confirming completion in #8.
- At the thread's close, the callback-context change had landed, while the strerror and shared-error-buffer work remained deferred pending thread-local storage primitives, as explained in #6 and 9122ff65a1.