Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqoLH-0006U8-C6 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2015 20:26:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZqoLG-0002yD-NP for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2015 20:26:06 +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 1ZqoLF-0002x2-4M for pgsql-hackers@postgresql.org; Mon, 26 Oct 2015 20:26:05 +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 1ZqoLC-0002Xb-K4 for pgsql-hackers@postgresql.org; Mon, 26 Oct 2015 20:26:03 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MDhny-1ZibPN2nV8-00H4gd for ; Mon, 26 Oct 2015 21:25:59 +0100 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 3EE8E20874 for ; Mon, 26 Oct 2015 16:25:58 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 26 Oct 2015 16:25:58 -0400 X-Sasl-enc: zxSaukNukfv7CD/2cc3tmDmhzks7lO3rLIgGuykSCuwx 1445891158 Received: from [192.168.1.59] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 10035C00022 for ; Mon, 26 Oct 2015 16:25:58 -0400 (EDT) Subject: Re: Patch: Implement failover on libpq connect level. To: pgsql-hackers@postgresql.org References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> From: Peter Eisentraut Message-ID: <562E8C55.9030409@gmx.net> Date: Mon, 26 Oct 2015 16:25:57 -0400 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: <20151014104151.GA6744@wagner.pp.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:8sZ3mx1SYka4QyNdUq+QsJi7FYRBBP+OnvK+h2CQ/UqnjOaj/S+ IXfKTJLjI2Y0iDW5/UeBZed6lSnFDhlvdDk9d+iADdyPXRXcEBlMo8kVdAh1+o9ekwSXSzq 85NWYjqgvxKdyI4PKOsfSIKsMaQtYVyvhlXuwVqSG5a2PDzArkzC5GvJBT8TGVUw/lE8imH aGDffAd7I1ynaEhZ/SSAw== X-UI-Out-Filterresults: notjunk:1;V01:K0:g7Jvn6vhcMM=:h8aVDp2qxZiPl0wDQJhMCk Reb+EzTca4mOZ6wzV+oD+X94DXx+eAbG6CRa45u45gNlAD498/RpANCgptkyHjVfLKzI/f9ol xIerkUtILuBjiJ0vXpE0Eo8l60Jh3TvkMoAuhpH/6PaJRPsNrw6wz0RHphoEH5Jiybq8Ps+KX Ce/9INTO0nbxvBWV6MK+SySQSI0TrD3MEy8Zp57ABmkJwVm6FPUYuEdUaTrckgvSL3SbRGK07 rEUVOKRsDgERxSeOaYRX8/M9X8uRSUyJzZIiXaN9lPo+JGnp6ToyUYQMihgBU1HMYqlAhx9LB R/lovV1ewQYqUwMR8NdnXQ9+o+dr+j3PUdmzLbQyEz0Wc7muKoRr6DsImYjtEqGI7I/wW7sUx bvcDRNOnNymAVz2DFPgYf1Iyqcq0rHWRZBjL76MIv7YQH5N4Ism8Eg9u9p1B57njilRKybFqr mX761OCrPQubb11JLTgXC/NlyrksAWo1P2iba9IITqunUlEXIaugNy2iynZVWP4ddxQwEW5R1 IgJ8LSzjEMEiqsDR/QE+PmH4RY3c5tmJHmuYJWJqJslADSXgzEqiWDu9MYbr5etOfquhZy3Bc /B0q4hygPbzvLmkgtgQ5TM3RuVyOoeKS3vV+DVzaO3XljgYi7DiKDDPcv3vYfnp5l4W1CxRKl USJRwAab1M2ws32ybHAT+htIp8ajPM3yKBSeCqO+DUYLAuyv1KrWPmlB7ntZF49Cw32B2ro9G WLy1fgsVSsRpCvktEqD/1/7BtqzGEz6UgtWtOJTb3ikEJ+G9xsLXM+8swsv4jEE582Oci7GNR 6pJ7Yvf 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/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. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers