In this article, the author discusses libpq failover and load balancing JDBC driver layer in PostgreSQL.