From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Does the JDBC connection failover require Postgres 10? |
Date: | 2017-11-03 14:19:39 |
Message-ID: | CAKFQuwZPcmJxtzHnebGZMT0APfxfxt69GWSG2HmxtQOmAiazgA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Fri, Nov 3, 2017 at 4:53 AM, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
> The Postgres JDBC driver offers a way to specify multiple hosts in the
> connection URL:
>
> https://jdbc.postgresql.org/documentation/head/connect.
> html#connection-failover
>
> However, it is unclear to me if that feature relies on the libpq feature
> introduced in Postgres 10:
>
> https://www.postgresql.org/docs/current/static/libpq-
> connect.html#libpq-multiple-hosts
>
> or if this is handled by the driver internally?
>
In short, it is handled by the driver internally.
There is no server support (which make sense given failure to connect would
preclude the presence of a server) in the libpq implementation of this
behavior - i.e., its not a protocol thing but a client implementation. The
JDBC driver does not utilize libpq at all, it directly implements the
PostgreSQL communication protocol.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Kellerer | 2017-11-03 16:59:30 | Re: Does the JDBC connection failover require Postgres 10? |
Previous Message | Jorge Solórzano | 2017-11-03 14:17:19 | Re: Does the JDBC connection failover require Postgres 10? |