pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Victor Wagner <vitus@wagner.pp.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Proposal: Implement failover on libpq connect level.
Date: Wed, 19 Aug 2015 14:11:31 -0400
Message-ID: <15172.1440007891@sss.pgh.pa.us> (raw)
In-Reply-To: <20150819173448.GA4767@wagner.pp.ru>
References: <20150818041850.GA5092@wagner.pp.ru>
	<20150819.124245.1322750734243127189.t-ishii@sraoss.co.jp>
	<20150819071009.GC31302@wagner.pp.ru>
	<20150820.001735.1312191060652873768.t-ishii@sraoss.co.jp>
	<20150819173448.GA4767@wagner.pp.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Victor Wagner <vitus@wagner.pp.ru> writes:
> On 2015.08.20 at 00:17:35 +0900, Tatsuo Ishii wrote:
>> One downside of this is, if one of the standby servers is not
>> responding, every time clients will be blocked by the server before
>> giving up the connection trial. This could last for hours (for

> This shouldn't happen. My proposal was to connect all servers
> simultaneously, and then use that connection which would be established
> first closing other ones

That seems like seriously unfriendly behavior.  It will trigger dropped
connection bleats in the server logs, not to mentioned wasted process
forks.

			regards, tom lane


-- 
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: <15172.1440007891@sss.pgh.pa.us>
Permalink:  ../15172.1440007891@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15172.1440007891@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, vitus@wagner.pp.ru, pgsql-hackers@postgresql.org
  Subject: Re: Proposal: Implement failover on libpq connect level.
  In-Reply-To: <15172.1440007891@sss.pgh.pa.us>
  References: <20150818041850.GA5092@wagner.pp.ru> <20150819.124245.1322750734243127189.t-ishii@sraoss.co.jp> <20150819071009.GC31302@wagner.pp.ru> <20150820.001735.1312191060652873768.t-ishii@sraoss.co.jp> <20150819173448.GA4767@wagner.pp.ru> <15172.1440007891@sss.pgh.pa.us>

* 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