pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Does the JDBC connection failover require Postgres 10?
4+ messages / 3 participants
[nested] [flat]

* Does the JDBC connection failover require Postgres 10?
@ 2017-11-03 11:53  Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 2 replies; 4+ messages in thread

From: Thomas Kellerer @ 2017-11-03 11:53 UTC (permalink / raw)
  To: pgsql-jdbc

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? 

Thomas







-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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

* Re: Does the JDBC connection failover require Postgres 10?
@ 2017-11-03 14:17  Jorge Solórzano <jorsol@gmail.com>
  parent: Thomas Kellerer <spam_eater@gmx.net>
  1 sibling, 0 replies; 4+ messages in thread

From: Jorge Solórzano @ 2017-11-03 14:17 UTC (permalink / raw)
  To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc

Hi Thomas,

The PgJDBC driver do not rely on the libpq library, the driver implements
everything in pure Java.

Jorge Solórzano


On Fri, Nov 3, 2017 at 5:53 AM, Thomas Kellerer <spam_eater@gmx.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-connec
> t.html#libpq-multiple-hosts
>
> or if this is handled by the driver internally?
>
> Thomas
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

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

* Re: Does the JDBC connection failover require Postgres 10?
@ 2017-11-03 14:19  David G. Johnston <david.g.johnston@gmail.com>
  parent: Thomas Kellerer <spam_eater@gmx.net>
  1 sibling, 1 reply; 4+ messages in thread

From: David G. Johnston @ 2017-11-03 14:19 UTC (permalink / raw)
  To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc

On Fri, Nov 3, 2017 at 4:53 AM, Thomas Kellerer <spam_eater@gmx.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.

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

* Re: Does the JDBC connection failover require Postgres 10?
@ 2017-11-03 16:59  Thomas Kellerer <spam_eater@gmx.net>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Thomas Kellerer @ 2017-11-03 16:59 UTC (permalink / raw)
  To: pgsql-jdbc

David G. Johnston schrieb am 03.11.2017 um 15:19:
> On Fri, Nov 3, 2017 at 4:53 AM, Thomas Kellerer <spam_eater@gmx.net <mailto:spam_eater@gmx.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.

Thanks, apparently I mis-read the release notes



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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


end of thread, other threads:[~2017-11-03 16:59 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 11:53 Does the JDBC connection failover require Postgres 10? Thomas Kellerer <spam_eater@gmx.net>
2017-11-03 14:17 ` Jorge Solórzano <jorsol@gmail.com>
2017-11-03 14:19 ` David G. Johnston <david.g.johnston@gmail.com>
2017-11-03 16:59   ` Thomas Kellerer <spam_eater@gmx.net>

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