Re: Patch: Implement failover on libpq connect level. - Mailing list pgsql-hackers

From Mithun Cy
Subject Re: Patch: Implement failover on libpq connect level.
Date
Msg-id CAD__OugUmpRZBxKie+PvS-TSJiMSpiOEYWcDbQ7CE5AvB+GY1A@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Implement failover on libpq connect level.  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Patch: Implement failover on libpq connect level.
List pgsql-hackers
On Fri, Nov 11, 2016 at 7:33 PM, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
> We tend to use the term "primary" instead of "master".

Thanks, I will use primary instead of master in my next patch.

>Will this work with logical replication?

I have not tested with logical replication. Currently we identify the primary to connect based on result of "SELECT pg_is_in_recovery()". So I think it works. Do you want me test a particular setup?

--
Thanks and Regards
Mithun C Y

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [PATCH] PostgresNode.pm enhancements, pg_lsn helper, and some more recovery tests
Next
From: Mithun Cy
Date:
Subject: Re: Patch: Implement failover on libpq connect level.