code: @Deprecated
    public boolean verify(String hostname, SSLSession session) {
      if (!sslMode.verifyPeerName()) {
        return true;
      }
      return PGjdbcHostnameVerifier.INSTANCE.verify(hostname, session);
    }
docs: Verifies the server certificate according to the libpq rules. The cn attribute of the
  certificate is matched against the hostname. If the cn attribute starts with an asterisk (*),
  it will be treated as a wildcard, and will match all characters except a dot (.). This means
  the certificate will not match subdomains. If the connection is made using an IP address
  instead of a hostname, the IP address will be matched (without doing any DNS lookups).
  
  @deprecated use PgjdbcHostnameVerifier
  @param hostname Hostname or IP address of the server.
  @param session The SSL session.
  @return true if the certificate belongs to the server, false otherwise.
  @see PGjdbcHostnameVerifier