skip to Main Content

Postgresql – Specifying multiple addresses to postgres DB via JDBC driver

When connecting to postgres via psql I connect via: psql 'postgresql://[email protected]:5432,pg-clienthttpfile-dev3.dev-dc2-c1.gb.app:5432/clienthttpfile?connect_timeout=5&target_session_attrs=read-write' I'm trying to connect my app via the JDBC driver and the connection string above does not work: I tried with double and single quotes database.url="jdbc:postgresql://[email protected]:5432,pg-clienthttpfile-dev3.dev-dc2-c1.gb.app:5432/clienthttpfile?connect_timeout=5&target_session_attrs=read-write" database.url='jdbc:postgresql://[email protected]:5432,pg-clienthttpfile-dev3.dev-dc2-c1.gb.app:5432/clienthttpfile?connect_timeout=5&target_session_attrs=read-write' Both throw:…

VIEW QUESTION

Postgresql – Postgres error – invalid value for parameter "TimeZone": "CST"

Facing below error while running app from the cloud however this error is not getting when running from the local. Caused by: java.sql.SQLTransientConnectionException: HikariPool-2 - Connection is not available, request timed out after 30000ms. at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:695) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:197) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:162)…

VIEW QUESTION
Back To Top
Search