Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXXB5-0005kF-93 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2015 16:15:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZXXB4-000201-7R for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2015 16:15:54 +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 1ZXX9l-0007Ux-Av for pgsql-hackers@postgresql.org; Thu, 03 Sep 2015 16:14:33 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZXX9h-0007W4-TV for pgsql-hackers@postgresql.org; Thu, 03 Sep 2015 16:14:32 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.169.63]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 23761400F83; Thu, 3 Sep 2015 09:14:23 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 4FE585BE; Thu, 3 Sep 2015 13:14:21 -0300 (CLT) Date: Thu, 3 Sep 2015 13:14:21 -0300 From: Alvaro Herrera To: Robert Haas Cc: Stephen Frost , "Shulgin, Oleksandr" , Andres Freund , Tom Lane , Albe Laurenz , Victor Wagner , "pgsql-hackers@postgresql.org" Subject: Re: Proposal: Implement failover on libpq connect level. Message-ID: <20150903161421.GB2912@alvherre.pgsql> References: <20150901175010.GP2912@alvherre.pgsql> <20150901181222.GK31526@awork2.anarazel.de> <20150903154221.GJ3685@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 Robert Haas wrote: > Alternatively, change the rules for parsing the existing host=X > parameter so that we split it on some separator that isn't a valid > hostname character, and then strip off an optional :port syntax from > each entry; that value, if present, overrides port=X for that entry. : is not a valid character in hostnames, so I think this makes sense. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers