pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Wagner <vitus@wagner.pp.ru>
To: Thom Brown <thom@linux.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Patch: Implement failover on libpq connect level.
Date: Mon, 24 Oct 2016 14:03:22 +0300
Message-ID: <20161024140322.12069b94@fafnir.local.vm> (raw)
In-Reply-To: <CAA-aLv4VVsOBOkHzOfuhfgF6XW=+Z-s=TgP2tgwVVXRnC0r=ew@mail.gmail.com>
References: <56E0AD90.5090409@pgmasters.net>
	<CAD__OuhfOL-TQz-BBrFMj_tu8DqTc+ccxbwLkj+tUHAzvH14Pw@mail.gmail.com>
	<20160905072215.4efd7b8a@wagner.wagner.home>
	<20160905110311.GA11351@e733>
	<20160907165634.5f8e9675@fafnir.local.vm>
	<CAD__Oui5DGk1oJnhPNCd_+4WNKgJTb2ni44k3urxxO+s5esw2A@mail.gmail.com>
	<20160909114953.10e702e4@fafnir.local.vm>
	<CA+TgmoamO_XWL6hmLVGG0akHPGmq=KQ-6Ymgf6ZYt7R9V=xFhg@mail.gmail.com>
	<CAD__OujEj6mn_cw2DHqV+cXgrp5=dJvCsC3UBVYsGitmN0b2Zw@mail.gmail.com>
	<20160927121956.2ab5138c@fafnir.local.vm>
	<CAD__Ouj+Wwmsv0hGEhUqNg+7mmpZYkbF4TFWnGMqnd97N9bqkQ@mail.gmail.com>
	<20160930114451.68e0fade@fafnir.local.vm>
	<CAD__OuhtVs-jBtyHa-4ycpqsSxTSzp1NLKJ1nQ1gVMrUupi4og@mail.gmail.com>
	<20161013125358.607534ad@fafnir.local.vm>
	<CA+TgmoYJN9fU-f46spycngWtwGsSxb+66frH6KKG_RFNpR3EyQ@mail.gmail.com>
	<CA+TgmoZHYhWai=+_y567xfj_d6Vm6T=grCo2LjFQMxZEBPVJjw@mail.gmail.com>
	<CAA-aLv4VVsOBOkHzOfuhfgF6XW=+Z-s=TgP2tgwVVXRnC0r=ew@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Mon, 24 Oct 2016 11:36:31 +0100
Thom Brown <thom@linux.com> 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



view thread (165+ messages)  latest in thread

Message-ID: <20161024140322.12069b94@fafnir.local.vm>
Permalink:  ../20161024140322.12069b94@fafnir.local.vm/
Also on:    postgresql.org/message-id/20161024140322.12069b94@fafnir.local.vm

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: vitus@wagner.pp.ru, thom@linux.com, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: Patch: Implement failover on libpq connect level.
  In-Reply-To: <20161024140322.12069b94@fafnir.local.vm>
  References: <56E0AD90.5090409@pgmasters.net> <CAD__OuhfOL-TQz-BBrFMj_tu8DqTc+ccxbwLkj+tUHAzvH14Pw@mail.gmail.com> <20160905072215.4efd7b8a@wagner.wagner.home> <20160905110311.GA11351@e733> <20160907165634.5f8e9675@fafnir.local.vm> <CAD__Oui5DGk1oJnhPNCd_+4WNKgJTb2ni44k3urxxO+s5esw2A@mail.gmail.com> <20160909114953.10e702e4@fafnir.local.vm> <CA+TgmoamO_XWL6hmLVGG0akHPGmq=KQ-6Ymgf6ZYt7R9V=xFhg@mail.gmail.com> <CAD__OujEj6mn_cw2DHqV+cXgrp5=dJvCsC3UBVYsGitmN0b2Zw@mail.gmail.com> <20160927121956.2ab5138c@fafnir.local.vm> <CAD__Ouj+Wwmsv0hGEhUqNg+7mmpZYkbF4TFWnGMqnd97N9bqkQ@mail.gmail.com> <20160930114451.68e0fade@fafnir.local.vm> <CAD__OuhtVs-jBtyHa-4ycpqsSxTSzp1NLKJ1nQ1gVMrUupi4og@mail.gmail.com> <20161013125358.607534ad@fafnir.local.vm> <CA+TgmoYJN9fU-f46spycngWtwGsSxb+66frH6KKG_RFNpR3EyQ@mail.gmail.com> <CA+TgmoZHYhWai=+_y567xfj_d6Vm6T=grCo2LjFQMxZEBPVJjw@mail.gmail.com> <CAA-aLv4VVsOBOkHzOfuhfgF6XW=+Z-s=TgP2tgwVVXRnC0r=ew@mail.gmail.com> <20161024140322.12069b94@fafnir.local.vm>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox