Re: jdbc connection multiple host

From: Padraic Renaghan <padraic(at)renaghan(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: jdbc connection multiple host
Date: 2024-07-30 12:35:31
Message-ID: 6BC75F21-E09C-43AE-8878-8321EA9ADB7A@renaghan.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

> From: James Pang <jamespang886(at)gmail(dot)com>
> 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rajyalakshmi Sareddy 2025-02-03 09:22:10 Regarding setClob and getclobval methods in PostgreSQL
Previous Message James Pang 2024-07-30 12:28:29 jdbc connection multiple host