model-writtenrun 7682 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion reported that threaded libpq clients using OpenSSL 1.0.2 or older could enter EVP cryptohash routines without locking callbacks, potentially mishandling errors during authentication #1.
- Michael Paquier concluded that older PostgreSQL branches avoided the affected EVP paths and proposed separating crypto initialization from SSL initialization so non-SSL connections would also install callbacks #2.
- Michael's first patch initialized callbacks before the startup packet and tracked their ownership per connection to handle repeated cleanup and multiple-host attempts safely; his experiments showed that SSL and crypto initialization needed shared locking #3.
- Michael refined cleanup and comments while testing concurrent SSL and non-SSL authentication, reporting no performance or concurrency problems with up to 200 threads #4; Jacob's testing also passed, and he requested moving the crypto_loaded guard into the non-SSL cleanup branch #5.
- Michael incorporated that cleanup change in #6, Jacob confirmed the revision in #7, and Michael committed it as 2c0cefcd18 with only two comment edits, closing the thread with confirmation that the fix had landed #8.