The option to fall back from direct SSL to negotiated SSL or a
plaintext connection was removed in commit
fb5718f35f.
Discussion: https://www.postgresql.org/message-id/
c82ad227-e049-4e18-8898-
475a748b5a5a@iki.fi
if (pollres == PGRES_POLLING_FAILED)
{
/*
- * Failed direct ssl connection, possibly try a new
- * connection with postgres negotiation
+ * SSL handshake failed. We will retry with a plaintext
+ * connection, if permitted by sslmode.
*/
CONNECTION_FAILED();
}