It would be very useful to be able to use the targetServerType connection parameter in the postgresql 9.4 jdbc connector for automatic database failover:
subname = //host1:5432,host2:5432/puppetdb?targetServerType=master
https://jdbc.postgresql.org/documentation/94/connect.html#connection-parameters