Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZm4G-0000Hx-R9 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2015 20:34:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZZm4G-00008a-2V for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2015 20:34:08 +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 1ZZm2u-000776-FF for pgsql-hackers@postgresql.org; Wed, 09 Sep 2015 20:32:45 +0000 Received: from nm11-vm5.bullet.mail.gq1.yahoo.com ([98.136.218.172]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZZm2p-00085u-TW for pgsql-hackers@postgresql.org; Wed, 09 Sep 2015 20:32:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1441830756; bh=2BB7voMt6MBn3pCz4N6VZC9CmUVB6YF98nxJnYZHa5o=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=TShhwIpdpZdlEH96FplpuRLK/DpfkeDLJoxTbnhMgj5wrPO+HAaZ7juHNoGiOWT+yRZbd8ncRdJ3qNQ8HAdKRNuFWJJGLwYM73hqUo3dkfptxmTZJfx4NuLdplDxje1g89vIgjgjgyYi7xEiyVvKoWc8JyKUS8WaM9Wmgsb6HSj2/621goiDy1wwhI5cE0RL9RV7RxU1Zk716p3RS6jbjMQyIM+gsszdVFUXGGS17zH8ym1Tw+mjyaamL9Ydfun1GRrobMy90/thGivk4jyBZuPkbXMaqqLk7KXpDfTsjcGeOyv5SF2qqDjmJj64pNJxn7VbzK5/tqERgC8LJyH3kg== Received: from [98.137.12.191] by nm11.bullet.mail.gq1.yahoo.com with NNFMP; 09 Sep 2015 20:32:36 -0000 Received: from [98.137.12.233] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 09 Sep 2015 20:32:36 -0000 Received: from [127.0.0.1] by omp1041.mail.gq1.yahoo.com with NNFMP; 09 Sep 2015 20:32:36 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 489676.49167.bm@omp1041.mail.gq1.yahoo.com X-YMail-OSG: a7tn3TQVM1kN9xboMOq3vcGN7kTrgR5CcolyZ90sbEB5Z4nidTqXCCBsKjyF8HV EFpWgjwfNF42ZDwSAOWN2o4fMoKy7tr759FUu4VX7X17ihAq3J.Ct2WAdue4B99.aCksDUIjXa7L eTei87hdya66.diC3iqN39dUF2ZDXcdLiYJ73JiWJP6Pjlmekk1PAfqQxGtodLItrN7IMT8f0nZ3 _1WIflbyl3sdMrd8t2ALyhu1FXh6ie6oXdAw9sQI2X7Vv0AyQEImnWFkVHnn53zsi9ByHAKwi6RM 2ffKFeV2.Zb06t_UZif0NHmZ20wDgIXzytRsWy665GYwiUeWC7xOV5nSftFqlTivUKNIRoMdRPL0 pYrEPxauJm9SnNBncGoc8euE7nvI6ye1LUBFCepVEThZTcw4gLlpNH.trtttL2lB1oXJzw8PfMSV IpO.CJZ7Rg15Ru6t1AbIHajjGPo0albnuNJxRM9JlRu0ce91sFf3QN5M37U1tPiTg Received: by 216.39.60.206; Wed, 09 Sep 2015 20:32:36 +0000 Date: Wed, 9 Sep 2015 20:30:49 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Robert Haas Cc: Bruce Momjian , "Shulgin, Oleksandr" , Andres Freund , Alvaro Herrera , Tom Lane , Albe Laurenz , Victor Wagner , "pgsql-hackers@postgresql.org" Message-ID: <1784601749.30934.1441830649267.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Proposal: Implement failover on libpq connect level. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1027 X-Pg-Spam-Score: -2.7 (--) 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 Robert Haas wrote: > I think the problem we should be trying to solve is: Given a set > of server IPs, connect to one that is up. > > I believe this comes up in several different scenarios. > > Example #1: [single server; changing IP address gracefully] > > Example #2: [xDB/BDR client uses local master if up; else a remote] > > Example #3: [SR/HS with changing primary] For all of those it is clear that we do not need (or want!) heartbeat, STONITH, fencing, etc. to be handled by the connector. If the above are the sorts of problems we are trying to solve, a very simple solution is the best. I know you outlined several; I'm not sure it would matter all that much which one we used -- any would work and someone should Just Do It. > I'm sure there are more. Ay, there's the rub. Some people seemed to be suggesting that this should be far more than what you describe above. That would, IMO, be a mistake. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers