Re: Patch: Implement failover on libpq connect level.
Catalin Iacob <iacobcatalin@gmail.com>
From: Catalin Iacob <iacobcatalin@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
Mithun Cy <mithun.cy@enterprisedb.com>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Peter van Hardenberg <pvh@pvh.ca>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2016-11-15T18:00:21Z
Lists: pgsql-hackers
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.
Commits
-
libpq: Add target_session_attrs parameter.
- 721f7bd3cbcc 10.0 landed
-
Remove superuser checks in pgstattuple
- fd321a1dfd64 10.0 cited
-
Fix unwanted flushing of libpq's input buffer when socket EOF is seen.
- c405918858c0 9.6.0 cited