Re: [PATCH] libpq: Allow specifying multiple host names to try to connect to

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [PATCH] libpq: Allow specifying multiple host names to try to connect to
Дата
Msg-id CA+TgmoajV=YmWNNbwWm0C6mmXyXD=BEAbEQjw5N94rzT+R2crg@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] libpq: Allow specifying multiple host names to try to connect to  (Mikko Tiihonen <Mikko.Tiihonen@nitorcreations.com>)
Список pgsql-hackers
On Sun, Apr 19, 2015 at 11:18 AM, Mikko Tiihonen
<Mikko.Tiihonen@nitorcreations.com> wrote:
> I would like allow specifying multiple host names for libpq to try to
> connecting to. This is currently only supported if the host name resolves to
> multiple addresses. Having the support for it without complex dns setup
> would be much easier.
>
> Example:
>
> psql -h dbslave,dbmaster -p 5432 dbname
>
> psql 'postgresql://dbslave,dbmaster:5432/dbname'
>
>
> Here the idea is that without any added complexity of pgbouncer or similar
> tool I can get any libpq client to try connecting to multiple nodes until
> one answers. I have added the similar functionality to the jdbc driver few
> years ago.

I'm not sure if this exact idea is what we want to do, but I like the
concept, and I think a lot of users would find it handy.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: patch for xidin
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Minor improvement to config.sgml