Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr89x-0002v9-FT for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Oct 2015 17:35:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zr89x-0002cA-12 for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Oct 2015 17:35:45 +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 1Zr89w-0002c4-GO for pgsql-hackers@postgresql.org; Tue, 27 Oct 2015 17:35:44 +0000 Received: from mx-out.zmailcloud.com ([192.198.85.98] helo=mx-out-1.zmailcloud.com) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zr89t-0005Vi-4r for pgsql-hackers@postgresql.org; Tue, 27 Oct 2015 17:35:44 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id 1A5B3563FFE; Tue, 27 Oct 2015 12:35:40 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 07EB6601CC; Tue, 27 Oct 2015 12:35:40 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WnjuzeFfJnyX; Tue, 27 Oct 2015 12:35:39 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id DA9BE6021D; Tue, 27 Oct 2015 12:35:39 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id CB297601F4; Tue, 27 Oct 2015 12:35:39 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oWZ2vWb9D8xn; Tue, 27 Oct 2015 12:35:39 -0500 (CDT) Received: from [172.47.23.105] (50-0-190-244.dsl.dynamic.fusionbroadband.com [50.0.190.244]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 15C7B601CC; Tue, 27 Oct 2015 12:35:38 -0500 (CDT) Subject: Re: Patch: Implement failover on libpq connect level. To: "Shulgin, Oleksandr" , Christopher Browne References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> <562E8C55.9030409@gmx.net> Cc: Peter Eisentraut , PostgreSQL Mailing Lists From: Josh Berkus Organization: PostgreSQL Experts Inc. Message-ID: <562FB5EA.6010601@agliodbs.com> Date: Tue, 27 Oct 2015 10:35:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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-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/27/2015 01:42 AM, Shulgin, Oleksandr wrote: > On Mon, Oct 26, 2015 at 10:02 PM, Christopher Browne > wrote: > > > On 26 October 2015 at 16:25, Peter Eisentraut > wrote: > > On 10/14/15 6:41 AM, Victor Wagner wrote: > > 1. It is allowed to specify several hosts in the connect string, either > > in URL-style (separated by comma) or in param=value form (several host > > parameters). > > I'm not fond of having URLs that are not valid URLs according to the > applicable standards. Because then they can't be parsed or > composed by > standard libraries. > > Also, this assumes that all the components other than host and > port are > the same. Earlier there was a discussion about why the ports > would ever > need to be different. Well, why can't the database names be > different? > I could have use for that. > > I think you should just accept multiple URLs. > > > I'd give a "+1" on this... > > As an area of new behaviour, I don't see a big problem with declining to > support every wee bit of libpq configuration, and instead requiring the > use of URLs. > > Trying to put "multiplicities" into each parameter (and then considering > it at the pg_service level, too) is WAY more complicated, and for a > feature where it seems to me that it is pretty reasonable to have a > series of fully qualified URLs. > > Specifying several URLs should be easier to understand, easier to > test, easier to code, and easier to keep from blowing up badly. > > > Setting aside all other concerns, have a +1 from me on that too. I'm good with this. +1 -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers