Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZIxc-0001qv-Ru for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2015 13:29:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZZIxc-00016y-8L for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2015 13:29:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZZIxa-00016o-Ec for pgsql-hackers@postgresql.org; Tue, 08 Sep 2015 13:29:18 +0000 Received: from nm21-vm4.bullet.mail.gq1.yahoo.com ([98.136.217.51]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZZIxX-0007NV-16 for pgsql-hackers@postgresql.org; Tue, 08 Sep 2015 13:29:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1441718953; bh=iIs6fN/UVJhddRtY248TrO26wdTC1i4CHg8uCnPiv6o=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=i0u6gJ81d8OxZ/VRJhnucVw3oxV//kI5wB/I2lJeQvngyhChuAojHpgbDc4Do8S1MB+41/3SwYlIc+WRGBIl5XusWLZmEkxBKBKZwtuAubC+OGcdGa0Ev0mpi80eF0EJxFoFYs9/BfE5BAGn/GDRQ0Nq/2eNu+NnNUtY6/SRduqJx6KFZ/e6Mb3UCG7bMfPx0cvT6n7BHF0aM8Libn+HOaHDx/8h5zUz4uFuOBBTSFcC6xmQpobxnYvjzQ7daqHbz2hiqsnROFWpTNJfwcKwQMJFut9KMvF4qGsOPsSkIzFWyoO18B1hUjXn7DY3pG04PQDEWEkxr7BYIE4J0R9bhA== Received: from [216.39.60.181] by nm21.bullet.mail.gq1.yahoo.com with NNFMP; 08 Sep 2015 13:29:13 -0000 Received: from [98.137.12.219] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 08 Sep 2015 13:29:13 -0000 Received: from [127.0.0.1] by omp1027.mail.gq1.yahoo.com with NNFMP; 08 Sep 2015 13:29:13 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 389020.21489.bm@omp1027.mail.gq1.yahoo.com X-YMail-OSG: LKwPaZ8VM1kP2vZUGmJQPSf41kT9wa8VSOULWTmXqVV6OeDZJ25XTXklnlNerDA FQUCju1bpotQ1qQTI.l.8JdMX3u5jLz5D_mWHsTYdvNUIZHLBhdsgUOzEyYpY_.6UzzqnOAeLqCN ooHVt.3_OwCA2KNFEEFscanSnv549Y6KADiUeCgVcAs3CDm975htb0nNufD2AJjIx2YlnCwNiowj 85WebqiczIGiaug8H2t1dKKDSZOQkYkrYeNlcqMZ_DZQM_AoS_nNHRIkRr_HK_pzXD1euI4LRzIt 6gh.zsHY86z18NhHBu3nWyj9gWqZGRPkCWaCWnn7izqR1ZJba576Pmf3YzZ06wiLFfR4DJULwbds cSt4FTHdkEa1c_DYKL81iXeA4jZiUeIk3ytGY.bGhor1pndNzBvGo8OWlJEOoFM1BN7cnIP9JaX8 4Oppqh2tPGCqodRuOXXRzuViLSDg3hgtOp1ljWI5XWEPJ_o2JrqDJunxg2MMEVyWD Received: by 216.39.60.195; Tue, 08 Sep 2015 13:29:12 +0000 Date: Tue, 8 Sep 2015 13:29:12 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Bruce Momjian , Robert Haas Cc: "Shulgin, Oleksandr" , Andres Freund , Alvaro Herrera , Tom Lane , Albe Laurenz , Victor Wagner , "pgsql-hackers@postgresql.org" Message-ID: <180650928.2160095.1441718952355.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <20150904234303.GA10148@momjian.us> References: <20150904234303.GA10148@momjian.us> 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: 2031 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 Bruce Momjian wrote: > It is annoying for less capable database to say they have high > availability when that just involves having a client library that > can connect to multiple hosts. This sounds like the "But all the *other* kids are doing it!" argument, which comes up often. We generally resist doing something solely on that basis, so the rest of the email is really what matters, I think, much as this does gall. > Yes, we can do this in DNS, but that is all happening at a > different layer. More than that, there are technical reasons that can be a bad solution. As just one example, the servers might well be in different domains. > Now, the counter-argument is that this is the wrong layer to do > it, and we will end up adding tons of configurations variables to > libpq to control this. Yeah, we definitely *don't* want to implement some sort of failover manager in every connector -- that way madness lies. > We are clearly not adding this just because JDBC has it --- we > are adding it because it allows for more complex server > configurations. I think what we need is a clear description of use cases where we think this is the solution, and some clear boundaries to the scope -- so it is also clear what kinds of problems this is *not* intended to solve. > Could this ability be more powerfully done with DNS or a > connection pooler, yes, but not everyone wants that complexity. > For me, this libpq change has a simple user API with a small > amount of code change that give us a simple solution to a common > problem. I'm not saying we shouldn't have something like this; but we need a clear definition of that common problem we are solving. I don't think I've seen that yet. I've seen various spins on solutions described, from which I can infer various possible problems; but to pick the best version of this as *the* solution I think we need a clear statement of the problem itself. -- 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