commit 53fca988682c80a99bbb19eeb3d7959533fc3b83
Author: Jacob Champion <pchampion@vmware.com>
Date:   Fri Mar 25 14:16:47 2022 -0700

    squash! Enable SSL library detection via PQsslAttribute()
    
    Add docs.

diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 3998b1781b..82f3092715 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -2538,6 +2538,17 @@ const char *PQsslAttribute(const PGconn *conn, const char *attribute_name);
             Name of the SSL implementation in use. (Currently, only
             <literal>"OpenSSL"</literal> is implemented)
            </para>
+           <note>
+            <para>
+             As a special case, the <literal>library</literal> attribute may be
+             queried without an existing connection by passing NULL as the
+             <literal>conn</literal> argument. The historical behavior was to
+             return NULL for any attribute when a NULL <literal>conn</literal>
+             was provided; client programs needing to differentiate between the
+             newer and older implementations may check the
+             <literal>LIBPQ_HAS_SSL_LIBRARY_DETECTION</literal> feature macro.
+            </para>
+           </note>
           </listitem>
          </varlistentry>
         <varlistentry>
