| From: | Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com> |
|---|---|
| To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
| Cc: | Kuntal Ghosh <kuntalghosh(dot)2007(at)gmail(dot)com>, Catalin Iacob <iacobcatalin(at)gmail(dot)com>, "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Peter van Hardenberg <pvh(at)pvh(dot)ca>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Patch: Implement failover on libpq connect level. |
| Date: | 2016-12-01 10:00:54 |
| Message-ID: | CAD__Ouies5DMSeege+16kPVO0S7uXakHcoOjuJLhvuJRCLw=4w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-jdbc |
On Wed, Nov 30, 2016 at 7:14 AM, Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)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
EnterpriseDB: http://www.enterprisedb.com
| Attachment | Content-Type | Size |
|---|---|---|
| failover-to-new-writable-session_bugfix_01.patch | application/octet-stream | 3.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ashutosh Bapat | 2016-12-01 11:02:34 | Re: Partition-wise join for join between (declaratively) partitioned tables |
| Previous Message | Daniel Verite | 2016-12-01 09:16:26 | Re: pgbench - allow backslash continuations in \set expressions |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2016-12-01 11:40:52 | Re: Database reset connection |
| Previous Message | Manoj Palhade | 2016-12-01 05:30:57 | Re: Database reset connection |