Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byd2R-0007Da-RM for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 11:03:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1byd2Q-0004VK-C3 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 11:03:30 +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_2) (envelope-from ) id 1byd2P-0004VE-R6 for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 11:03:29 +0000 Received: from mx.wagner.pp.ru ([78.46.190.96]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byd2L-0007Gf-Iw for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 11:03:29 +0000 Received: from mail.wagner.pp.ru (unknown [192.168.217.131]) by mx.wagner.pp.ru (Postfix) with ESMTP id 77261E01A2; Mon, 24 Oct 2016 14:03:24 +0300 (MSK) Received: from fafnir.local.vm (mail.postgrespro.ru [93.174.131.138]) by mail.wagner.pp.ru (Postfix) with ESMTPSA id E11ED2088C; Mon, 24 Oct 2016 14:03:23 +0300 (MSK) Date: Mon, 24 Oct 2016 14:03:22 +0300 From: Victor Wagner To: Thom Brown Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Patch: Implement failover on libpq connect level. Message-ID: <20161024140322.12069b94@fafnir.local.vm> In-Reply-To: References: <56E0AD90.5090409@pgmasters.net> <20160905072215.4efd7b8a@wagner.wagner.home> <20160905110311.GA11351@e733> <20160907165634.5f8e9675@fafnir.local.vm> <20160909114953.10e702e4@fafnir.local.vm> <20160927121956.2ab5138c@fafnir.local.vm> <20160930114451.68e0fade@fafnir.local.vm> <20161013125358.607534ad@fafnir.local.vm> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.2 (---) 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 Mon, 24 Oct 2016 11:36:31 +0100 Thom Brown wrote: > > - It's pretty clear that this isn't going to work if the host list > > includes a mix of hostnames and UNIX socket addresses. The code > > that handles the UNIX socket address case is totally separate from > > the code that handles the multiple-hostname case. > > So should it be the case that it disallows UNIX socket addresses > entirely? I can't imagine a list of UNIX socket addresses being that > useful. Really, patch was implemented as TCP-only from the beginning. I know only one case, where list of UNIX sockets is useful - test suite. I have to include modifications to PostgresNode.pm in the patch to allow testing with TCP sockets. Also, I can imagine that people would want include one unix socket into list of TCP ones, i.e. one of replicas running on the same host as application server. But patch doesn't support it. May be it should be clarified in the documentation, that this is not supported. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers