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__Ouh1WZ3K+cYf7q4mdE9ASmEgBYR7y20+F6X6haWJCB9c9A@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Implement failover on libpq connect level.  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Patch: Implement failover on libpq connect level.
Re: Patch: Implement failover on libpq connect level.
List pgsql-hackers

On Fri, Dec 2, 2016 at 8:54 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Couldn't this just be a variable in PQconnectPoll(), instead of adding
> a new structure member?

I have fixed same with a local variable in PQconnectPoll, Initally I thought savedMessage should have same visiblitly as errorMessage so we can restore the errorMessage even outside PQconnectPoll. But that seems not required. Attacting the new patch which fixes the same.

--
Thanks and Regards
Mithun C Y

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Proposal for changes to recovery.conf API
Next
From: Haribabu Kommi
Date:
Subject: Re: [PATCH] Generic type subscription