From: Josh Berkus <josh@agliodbs.com>
To: Shulgin, Oleksandr <oleksandr.shulgin@zalando.de>
To: Christopher Browne <cbbrowne@gmail.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: PostgreSQL Mailing Lists <pgsql-hackers@postgresql.org>
Subject: Re: Patch: Implement failover on libpq connect level.
Date: Tue, 27 Oct 2015 10:35:38 -0700
Message-ID: <562FB5EA.6010601@agliodbs.com> (raw)
In-Reply-To: <WM!bd0aa238b96424465787bc90cafb91a45e849d606732aaef38e052754baa22d2625e56269da1bb96ab79757019455bbb!@asav-3.01.com>
References: <20150818041850.GA5092@wagner.pp.ru>
<20151014104151.GA6744@wagner.pp.ru>
<562E8C55.9030409@gmx.net>
<CAFNqd5XXk+E+qxaNtB04RBpCQigUF=z0EJWDmUHpT0qMuM15SQ@mail.gmail.com>
<CACACo5Sno_rvor892t-rxVtA+19VYXZD1JR=8_orWm-6-0xKCQ@mail.gmail.com>
<WM!bd0aa238b96424465787bc90cafb91a45e849d606732aaef38e052754baa22d2625e56269da1bb96ab79757019455bbb!@asav-3.01.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 10/27/2015 01:42 AM, Shulgin, Oleksandr wrote:
> On Mon, Oct 26, 2015 at 10:02 PM, Christopher Browne <cbbrowne@gmail.com
> <mailto:cbbrowne@gmail.com>> wrote:
>
>
> On 26 October 2015 at 16:25, Peter Eisentraut <peter_e@gmx.net
> <mailto:peter_e@gmx.net>> 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
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: josh@agliodbs.com, oleksandr.shulgin@zalando.de, cbbrowne@gmail.com, peter_e@gmx.net, pgsql-hackers@postgresql.org
Subject: Re: Patch: Implement failover on libpq connect level.
In-Reply-To: <562FB5EA.6010601@agliodbs.com>
References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> <562E8C55.9030409@gmx.net> <CAFNqd5XXk+E+qxaNtB04RBpCQigUF=z0EJWDmUHpT0qMuM15SQ@mail.gmail.com> <CACACo5Sno_rvor892t-rxVtA+19VYXZD1JR=8_orWm-6-0xKCQ@mail.gmail.com> <WM!bd0aa238b96424465787bc90cafb91a45e849d606732aaef38e052754baa22d2625e56269da1bb96ab79757019455bbb!@asav-3.01.com> <562FB5EA.6010601@agliodbs.com>
* 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