pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Catalin Iacob <iacobcatalin@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Mithun Cy <mithun.cy@enterprisedb.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.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: Tue, 15 Nov 2016 15:14:23 -0300
Message-ID: <20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql> (raw)
In-Reply-To: <CAHg_5gqgk9bjumVStUAvJGG3U3h56POPn8p+eaJcNCe0bxyhyA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Catalin Iacob wrote:
> On Tue, Nov 15, 2016 at 3:42 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> > FWIW I'm not sure "primary" is the right term here either.  I think what
> > we really want to know is whether the node can accept writes; maybe
> > "pg_is_writable_node".
> 
> This made me think of another complication: what about cascading
> replication where the middle node is both a master and a slave? You'd
> probably not want to fallback to the middle node even though it is a
> master for its downstream.

Exactly my thought, hence the above suggestion.

-- 
Álvaro Herrera                https://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: <20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql>
Permalink:  ../20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql/
Also on:    postgresql.org/message-id/20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, iacobcatalin@gmail.com, robertmhaas@gmail.com, mithun.cy@enterprisedb.com, peter.eisentraut@2ndquadrant.com, pvh@pvh.ca, pgsql-hackers@postgresql.org
  Subject: Re: Patch: Implement failover on libpq connect level.
  In-Reply-To: <20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql>
  References: <CAHg_5gqgk9bjumVStUAvJGG3U3h56POPn8p+eaJcNCe0bxyhyA@mail.gmail.com> <20161115181423.dcfvuzou4xc6i2bg@alvherre.pgsql>

* 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