pgsql: libpq: Fix another bug in 721f7bd3cbccaf8c07cad2707826b83f846948 - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: libpq: Fix another bug in 721f7bd3cbccaf8c07cad2707826b83f846948
Date
Msg-id E1cDyga-00022w-Cj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
libpq: Fix another bug in 721f7bd3cbccaf8c07cad2707826b83f84694832.

If we failed to connect to one or more hosts, and then afterwards we
find one that fails to be read-write, the latter error message was
clobbering any earlier ones.  Repair.

Mithun Cy, slightly revised by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a0ae54df9b153256a9d0afe45732853cb5ccae09

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 66 +++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix race introduced by 6d46f4783efe457f74816a75173eb23ed8930020.
Next
From: Robert Haas
Date:
Subject: pgsql: dsa: Cope with the possibility that SIZE_MAX is not defined.