Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZS7rB-0000YQ-RA for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Aug 2015 18:13:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZS7rA-0001dl-IU for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Aug 2015 18:13:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZS7pt-0000CV-Lz for pgsql-hackers@postgresql.org; Wed, 19 Aug 2015 18:11:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZS7pm-0006nC-AB for pgsql-hackers@postgresql.org; Wed, 19 Aug 2015 18:11:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t7JIBV3r015173; Wed, 19 Aug 2015 14:11:31 -0400 From: Tom Lane To: Victor Wagner cc: pgsql-hackers@postgresql.org Subject: Re: Proposal: Implement failover on libpq connect level. 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> Comments: In-reply-to Victor Wagner message dated "Wed, 19 Aug 2015 20:34:48 +0300" Date: Wed, 19 Aug 2015 14:11:31 -0400 Message-ID: <15172.1440007891@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Victor Wagner 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