pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Mithun Cy <mithun.cy@enterprisedb.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter van Hardenberg <pvh@pvh.ca>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Patch: Implement failover on libpq connect level.
Date: Fri, 11 Nov 2016 09:03:55 -0500
Message-ID: <032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com> (raw)
In-Reply-To: <CAD__OuhqPRGpcsfwPHz_PDqAGkoqS1UvnUnOnAB-LBWBW=wu4A@mail.gmail.com>
References: <20150818041850.GA5092@wagner.pp.ru>
	<CA+TgmoY7GbhB5QMuCF46toJ==soXEU4oWkDdzuaC+oCi9gQepg@mail.gmail.com>
	<CA+TgmoYZpwFtr5e=oc+UC0EAePbFzbY1BRcB_av9aeROGBEDbg@mail.gmail.com>
	<CAD__OujSGmLNZ_qw+v3aL-fDXxWSjrXd209+efGmZHMwzwTfdw@mail.gmail.com>
	<CA+TgmoYF9Oinwip-1yhjTSPosUWBZN_7E9qZOx-8PnnPqJKiQA@mail.gmail.com>
	<CAD__OuhfK25iXXwDcXS2uEas-qfiuraHHCXAp7eu88H5uj4n8A@mail.gmail.com>
	<CA+TgmoY17EPBD1A2y66pO9F=y5-L9EOyaFaRHg_DojEKVESJ5w@mail.gmail.com>
	<CAD__OuihR7Ws54wnFYg_q9O49DreLX=8Ba1ybnnJtg3RHJzZOg@mail.gmail.com>
	<CA+TgmoZQLcGa1v9-ZY4bi8RdsqMqU2CEdk4Bzz11Y5nqZoVXDQ@mail.gmail.com>
	<CAD__Ouh3cK2_ZAAUXt4PC4gNPYSuZJPx9nDxUNVNeaFWABbLsQ@mail.gmail.com>
	<CA+TgmoYg5yzou=Q5OQwFCU5xvf6VWvx4rvxZBHtJTgX1d9oK2A@mail.gmail.com>
	<CAD__OuiXPh_0pCBN5fXdH6gJ+yb0QexJ_b=WxsFyqbFp-aNzKA@mail.gmail.com>
	<CA+TgmoZt08RrUk_iN3AYpyTABfepJ92bCm0dXYiPa25W3Obqsg@mail.gmail.com>
	<CAD__OuhqPRGpcsfwPHz_PDqAGkoqS1UvnUnOnAB-LBWBW=wu4A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 11/9/16 10:05 AM, Mithun Cy wrote:
> As in Victor's patch we have a new connection parameter
> "target_server_type", It can take 2 values 1. "any" 2. "master" with
> DEFAULT as "any". If it's has the value "any" we can connect to any of
> the host server (both master(primary) and slave(standby)). If the value
> is "master" then we try to connect to master(primary) only.

We tend to use the term "primary" instead of "master".

Will this work with logical replication?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
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: <032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com>
Permalink:  ../032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com/
Also on:    postgresql.org/message-id/032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, mithun.cy@enterprisedb.com, robertmhaas@gmail.com, pvh@pvh.ca, pgsql-hackers@postgresql.org
  Subject: Re: Patch: Implement failover on libpq connect level.
  In-Reply-To: <032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.com>
  References: <20150818041850.GA5092@wagner.pp.ru> <CA+TgmoYZpwFtr5e=oc+UC0EAePbFzbY1BRcB_av9aeROGBEDbg@mail.gmail.com> <CAD__OujSGmLNZ_qw+v3aL-fDXxWSjrXd209+efGmZHMwzwTfdw@mail.gmail.com> <CA+TgmoYF9Oinwip-1yhjTSPosUWBZN_7E9qZOx-8PnnPqJKiQA@mail.gmail.com> <CAD__OuhfK25iXXwDcXS2uEas-qfiuraHHCXAp7eu88H5uj4n8A@mail.gmail.com> <CA+TgmoY17EPBD1A2y66pO9F=y5-L9EOyaFaRHg_DojEKVESJ5w@mail.gmail.com> <CAD__OuihR7Ws54wnFYg_q9O49DreLX=8Ba1ybnnJtg3RHJzZOg@mail.gmail.com> <CA+TgmoZQLcGa1v9-ZY4bi8RdsqMqU2CEdk4Bzz11Y5nqZoVXDQ@mail.gmail.com> <CAD__Ouh3cK2_ZAAUXt4PC4gNPYSuZJPx9nDxUNVNeaFWABbLsQ@mail.gmail.com> <CA+TgmoYg5yzou=Q5OQwFCU5xvf6VWvx4rvxZBHtJTgX1d9oK2A@mail.gmail.com> <CAD__OuiXPh_0pCBN5fXdH6gJ+yb0QexJ_b=WxsFyqbFp-aNzKA@mail.gmail.com> <CA+TgmoZt08RrUk_iN3AYpyTABfepJ92bCm0dXYiPa25W3Obqsg@mail.gmail.com> <CAD__OuhqPRGpcsfwPHz_PDqAGkoqS1UvnUnOnAB-LBWBW=wu4A@mail.gmail.com> <032ab91d-54e8-d060-30cc-ebdc60917a83@2ndquadrant.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