SonarQube 6.7 fails with Postgres 10. Error comes from JDBC driver:
The solution is to upgrade the driver to 42.1.4 or greater.
As a workaround for SonarQube 6.7 LTS users, the content of directory lib/jdbc/postgresql must be replaced with https://jdbc.postgresql.org/download/postgresql-42.1.4.jar
Thanks to @mirabilos for the feedback: https://twitter.com/mirabilos/status/928666582531768320