The Postgres JDBC driver offers a way to specify multiple hosts in the connection URL:
https://jdbc.postgresql.org/documentation/head/connect.html#connection-failover
However, it is unclear to me if that feature relies on the libpq feature introduced in Postgres 10:
https://www.postgresql.org/docs/current/static/libpq-connect.html#libpq-multiple-hosts
or if this is handled by the driver internally?
Thomas