model-writtenrun 9340 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sergey Pashkov reported that PostgreSQL 11.2 libpq failed to compile against OpenSSL 1.1.1b with Visual Studio 2017, and manually enabling the BIO macros allowed compilation without producing working SSL connections #1.
- Juan José Santamaría Flecha supplied version detection and updated library selection #2; Michael Paquier identified missing HAVE_OPENSSL_INIT_SSL and HAVE_ASN1_STRING_GET0_DATA definitions #3, prompting a revision that also changed platform selection and AddLibrary fallback handling #4.
- Michael initially proposed backpatching through PostgreSQL 9.5 #5, but Sandeep Thakkar argued for 9.4 because of its remaining support lifetime #6; Michael confirmed that branch already supported OpenSSL 1.1.0 #7, and Juan supplied variants covering every supported branch and HEAD #8.
- Michael questioned the AddLibrary interface change and requested three-component version detection with less restrictive comparisons #9; after discussing documentation and deciding that the release-letter suffix was unnecessary #10 #11, Juan updated all branch variants #12.
- Michael supplied a revised HEAD patch that restored the existing AddLibrary interface, moved the version helper out of the VS2017-specific class, and used string comparisons, reporting successful Win32 builds against OpenSSL 1.0.2 and 1.1.0 #13.
- Juan warned that string comparisons would require padding and spotted a comment typo #14, while Álvaro Herrera requested grouping the OpenSSL configuration block with GSS #15; Michael accepted the placement change #16.
- Michael committed d993e0fb82 from #13 with numeric version components, the configuration-block move, and comment corrections, then reported additional testing with OpenSSL 1.0.2, 1.1.0, and 1.1.1 #17.
- After the buildfarm showed no problems, Michael confirmed backpatching through PostgreSQL 9.4, adapting USE_SSL and HAVE_RAND_OPENSSL for older branches; the thread ended with the fix landed across all supported branches #18.