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__Ouies5DMSeege+16kPVO0S7uXakHcoOjuJLhvuJRCLw=4w@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Implement failover on libpq connect level.  (Mithun Cy <mithun.cy@enterprisedb.com>)
Responses Re: Patch: Implement failover on libpq connect level.  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Nov 30, 2016 at 7:14 AM, Mithun Cy <mithun.cy@enterprisedb.com> wrote:
> Thanks, send query resets the errorMessage. Will fix same.
PQsendQuery()->PQsendQueryStart()->resetPQExpBuffer(&conn->errorMessage);

Please find the patch which fixes this bug. conn->errorMessage as per definition only stores current error message, a new member
conn->savedMessage is introduced to save and restore error messages related to previous hosts which we failed to connect.

--
Thanks and Regards
Mithun C Y

Attachment

pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: pgbench - allow backslash continuations in \set expressions
Next
From: Ashutosh Bapat
Date:
Subject: Re: Partition-wise join for join between (declaratively) partitioned tables