public inbox for [email protected]  
help / color / mirror / Atom feed
jdbc connection multiple host
2+ messages / 2 participants
[nested] [flat]

* jdbc connection multiple host
@ 2024-07-30 12:28 James Pang <[email protected]>
  2024-07-30 12:35 ` Re: jdbc connection multiple host Padraic Renaghan <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: James Pang @ 2024-07-30 12:28 UTC (permalink / raw)
  To: [email protected]

 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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: jdbc connection multiple host
  2024-07-30 12:28 jdbc connection multiple host James Pang <[email protected]>
@ 2024-07-30 12:35 ` Padraic Renaghan <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Padraic Renaghan @ 2024-07-30 12:35 UTC (permalink / raw)
  To: [email protected]

See info here at bottom of [this 
page](https://jdbc.postgresql.org/documentation/use/#connection-fail-over)

> From: James Pang <[email protected]>
> Subject: jdbc connection multiple host
> Date: 2024-07-30 08:28 EDT
>
>  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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-07-30 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30 12:28 jdbc connection multiple host James Pang <[email protected]>
2024-07-30 12:35 ` Padraic Renaghan <[email protected]>

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