Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtIi6-0001g3-N0 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2015 17:15:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZtIi6-00033h-43 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2015 17:15:58 +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 1ZtIi5-00032u-1I for pgsql-hackers@postgresql.org; Mon, 02 Nov 2015 17:15:57 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZtIi2-0005VR-75 for pgsql-hackers@postgresql.org; Mon, 02 Nov 2015 17:15:55 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M8edX-1aemnM1pw3-00wE7r for ; Mon, 02 Nov 2015 18:15:51 +0100 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id E8B54207D8 for ; Mon, 2 Nov 2015 12:15:49 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 02 Nov 2015 12:15:49 -0500 X-Sasl-enc: 1QrCpp7m/2nfUv/gn21C7s1K+T+u4oCRy4VqHFhzIYJu 1446484549 Received: from [192.168.1.59] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id A7318C016FC; Mon, 2 Nov 2015 12:15:49 -0500 (EST) Subject: Re: Patch: Implement failover on libpq connect level. To: Robert Haas References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> <562E8C55.9030409@gmx.net> <20151028111839.6e73c68a@fafnir> <56327381.5040108@gmx.net> Cc: Victor Wagner , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Message-ID: <56379A44.9080609@gmx.net> Date: Mon, 2 Nov 2015 12:15:48 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:A3RxQdQSfAs5R9/kE5Ktx1V93Vqw1zHBKu27EEACe7ID7unJ/xs KCeLvTUajVxP+894YObcx4fme3ESxgfvwSu10eTsJmet2bX0gVmd1JnFydJ8FxwgOelJYLY mQ6qgfDYuRCSSZrA8THg0/sT5H/ospIWhzt3FDgye+UUM5ydiwvJetNO3k6D/vltQHz8/S/ bo0urheYvbW7IqWaEEv9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:0Lv9iVRhG+M=:KhX1tWE37aNVgsif69AeAc 7+khXvhNUPfhevZlfvL+yRz6zjBS20qFnXu1+6stwxVqODbXvaSOE3rfsSI6hhxcSIRlykb9U obu5ogegPZtG8PK1hlCEXwvCV7PVf7DyxUgE4LDV2OtyyVS2qmZB2V8sK6dBCXadIgf21/N13 x5tfQcDTeeze/Gq+Xn82rJmk2Kjhazg0aIfC54cOGzJK/+1ghkjm9Lt8TM5D1lLeX4V855wjJ fjaU2UCccJmUfemF3X1/T0NLHlrXPkF+yv3Fw4xIRMwbNO5D4myuvGI6B9Jki36hdyReC9Lny UhGQC9FS6yeu6bea3VnCqR9W5mampttlsLTUw2p7aGKKLGxj1QtLgIHgPrQ5QOni0UqsXhUaf 1isoypwBP4PboRyFTFNGeN5lXICNZIPxTzI5o+dx0uU02dVD4bOa+Pm1Gntnc/2evUrXpLdRz 0RHHGQ6rC5R/62dyZtT3GoGUh4nvBiXyOG9C6KPOEEXIWYHVn8GqD6mnyQDB+mS48f59PKh7E UTdsy7VmrF0LSKvfqjb4psWQ/ruwkdLm7pzi/FyVVF88U7vGCbsnM9m6CtObEkdGso4o9JWcl BEsKM4PoOzN8lfXAKglBw3EijwyjN5GNy3vYKacBnkMC0eCqENeKKVO8pQFp9ar4KkSnQA08n t/Es2k4wCQAZL4pV+eAx0wZpOiTQ56yDCh6i6dxtm06BDO0MFT4Bt5COf6IEWSdN/TR+pGMzD BiclIGAzWu2N62nZ2jlcDUw3WI3aADr3bOcBswC2lfrJlUuNcaJJ7O5/iMJ/8KW0dg8226bW2 G/2f+H7 X-Pg-Spam-Score: -2.6 (--) 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 On 10/30/15 9:26 AM, Robert Haas wrote: > That's true, but doesn't allowing every parameter to be multiply > specified greatly increase the implementation complexity for a pretty > marginal benefit? Well, the way I would have approached is that after all the parsing you end up with a list of PQconninfoOption arrays and you you loop over that list and call connectDBStart() until you have a connection that satisfies you. I see that the patch doesn't do that and it looks quite messy as a result. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers