pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: pgsql-jdbc@postgresql.org
Subject: Simple connection fail-over documentation patch
Date: Sat, 26 May 2012 15:27:09 +0300
Message-ID: <4FC0CC1D.1000603@nitorcreations.com> (raw)
In-Reply-To: <4FBB9691.50008@nitorcreations.com>
References: <4FBB9691.50008@nitorcreations.com>

Here is a patch that updates the documentation to show include information about the connection fail-over url syntax and functionality.

Attachments:

connection-failover-documentation.patch (text/x-patch, 1.4K) download diff --git a/doc/pgjdbc.xml b/doc/pgjdbc.xml index a13d320..10d7e5f 100644 --- a/doc/pgjdbc.xml +++ b/doc/pgjdbc.xml @@ -812,6 +812,31 @@ openssl pkcs8 -topk8 -in client.key -out client.pk8 -outform DER -v1 PBE-SHA1-3D </sect2> + <sect2 id="connection-failover"> + <title>Connection Fail-over</title> + + <para> + To support simple connection fail-over it is possible to define multiple + endpoints (host and port pairs) in the connection url separated by commas. + The driver will try to once connect to each of them in order until the + connection succeeds. If none succeed, a normal connection exception is + thrown. + </para> + <para> + The syntax for the connection url is: + <synopsis> +jdbc:postgresql://<replaceable class="parameter">host1</replaceable>:<replaceable class="parameter">port1</replaceable>,<replaceable class="parameter">host2</replaceable>:<replaceable class="parameter">port2</replaceable>/<replaceable class="parameter">database</replaceable> +</synopsis> + </para> + + <para> + The simple connection fail-over is useful when running against + a high availability postgres installation that has identical data on each node. + For example streaming replication postgres that only accepts connection on the master + node or postgres-xc cluster. + </para> + </sect2> + </sect1> </chapter>

Message-ID: <4FC0CC1D.1000603@nitorcreations.com>
Permalink:  ../4FC0CC1D.1000603@nitorcreations.com/
Also on:    postgresql.org/message-id/4FC0CC1D.1000603@nitorcreations.com

 ·  · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mikko.tiihonen@nitorcreations.com
  Subject: Re: Simple connection fail-over documentation patch
  In-Reply-To: <4FC0CC1D.1000603@nitorcreations.com>
  References: <4FBB9691.50008@nitorcreations.com> <4FC0CC1D.1000603@nitorcreations.com>

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

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