pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ''Victor Wagner *EXTERN*' *EXTERN*' *EXTERN* <vitus@wagner.pp.ru>
To: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Proposal: Implement failover on libpq connect level.
Date: Wed, 19 Aug 2015 17:45:26 +0300
Message-ID: <20150819144526.GA3623@wagner.pp.ru> (raw)
In-Reply-To: <CANP8+jKZBWtOZbf4wiKzHijzz1JBsEr4=535ThLHb-6TvpW-Hg@mail.gmail.com>
References: <20150818041850.GA5092@wagner.pp.ru>
	<A737B7A37273E048B164557ADEF4A58B50F92F7C@ntex2010i.host.magwien.gv.at>
	<20150819065146.GA31302@wagner.pp.ru>
	<A737B7A37273E048B164557ADEF4A58B50F9386F@ntex2010i.host.magwien.gv.at>
	<20150819074417.GE31302@wagner.pp.ru>
	<A737B7A37273E048B164557ADEF4A58B50F93B53@ntex2010i.host.magwien.gv.at>
	<30615.1439991692@sss.pgh.pa.us>
	<20150819134634.GA10770@awork2.anarazel.de>
	<CANP8+jKZBWtOZbf4wiKzHijzz1JBsEr4=535ThLHb-6TvpW-Hg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2015.08.19 at 15:35:17 +0100, Simon Riggs wrote:

> 
> I think we do need some way of saying that a readonly connection is OK. So

I had such thing in my propsal (boolean parameter readonly). 
But haven't yet checked if it is compatible with jdbc syntax.

> the default would be to connect to each in turn until we find the master.
> It should keep retrying for a period of time since for a short period it is
> possible there is no master. If you specify readonly, then a connection to

It is very important addition  - to specify that if no host is able to
establish read-write session, we should retry and give a chance for
sever administration to promote one of standbys to master. Probably
there should be additional timeout parameter (we have
connection_timeout, and this would be failover_timeout) with some
reasonaable default.



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



view thread (63+ messages)  latest in thread

Message-ID: <20150819144526.GA3623@wagner.pp.ru>
Permalink:  ../20150819144526.GA3623@wagner.pp.ru/
Also on:    postgresql.org/message-id/20150819144526.GA3623@wagner.pp.ru

 · 

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: vitus@wagner.pp.ru, pgsql-hackers@postgresql.org
  Subject: Re: Proposal: Implement failover on libpq connect level.
  In-Reply-To: <20150819144526.GA3623@wagner.pp.ru>
  References: <20150818041850.GA5092@wagner.pp.ru> <A737B7A37273E048B164557ADEF4A58B50F92F7C@ntex2010i.host.magwien.gv.at> <20150819065146.GA31302@wagner.pp.ru> <A737B7A37273E048B164557ADEF4A58B50F9386F@ntex2010i.host.magwien.gv.at> <20150819074417.GE31302@wagner.pp.ru> <A737B7A37273E048B164557ADEF4A58B50F93B53@ntex2010i.host.magwien.gv.at> <30615.1439991692@sss.pgh.pa.us> <20150819134634.GA10770@awork2.anarazel.de> <CANP8+jKZBWtOZbf4wiKzHijzz1JBsEr4=535ThLHb-6TvpW-Hg@mail.gmail.com> <20150819144526.GA3623@wagner.pp.ru>

* 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