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
Back To Top
Search