public inbox for [email protected]  
help / color / mirror / Atom feed
From: James Pang <[email protected]>
To: [email protected]
Subject: jdbc connection multiple host
Date: Tue, 30 Jul 2024 20:28:29 +0800
Message-ID: <CAHgTRfda83VNLbXqXOPOtauCLd5wubSPtgfoJ9Q_x1WAsZYrSw@mail.gmail.com> (raw)

 We plan to migrate Oracle to Postgresql databases. Application put
multiple host:ip in connection string,
jdbc://host1ip:port,host2:port/dbname , when host1 is accessible, it's
preferred. when host1 is not accessible, host2:port is secondary.
  how to do that through  Postgresql JDBC driver ?

Thanks,

James


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: jdbc connection multiple host
  In-Reply-To: <CAHgTRfda83VNLbXqXOPOtauCLd5wubSPtgfoJ9Q_x1WAsZYrSw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox