2

In java we had an option to use multiple hosts configuration with failover mechanism:

jdbc:postgresql://node1:port1,node2:port2,node3:port3/accounting?targetServerType=primary

do we have such support in Go? How the connection string should look like? i've seen that lib/pq is not maintained

i didn't find any information about jackc/pgx if they support multi host, or how the connection string should look like. Please if someone can provide an example.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189

0 Answers0