pgsql: Reset error message at PQreset()

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reset error message at PQreset()
Date: 2014-10-29 12:44:05
Message-ID: E1XjSbd-00028K-3S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reset error message at PQreset()

If you call PQreset() repeatedly, and the connection cannot be
re-established, the error messages from the failed connection attempts
kept accumulating in the error string.

Fixes bug #11455 reported by Caleb Epstein. Backpatch to all supported
versions.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8f7bd8e91da321cb38f09087a4b9411277917b13

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-10-29 16:39:52 pgsql: Avoid setup work for invalidation messages at start-of-(sub)xact
Previous Message Tom Lane 2014-10-28 22:36:34 pgsql: Remove obsolete commentary.