Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XV3jV-0002Fq-3Q for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Sep 2014 19:20:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XV3jU-0007f0-HZ for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Sep 2014 19:20:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XV1VW-0002vf-89 for pgsql-bugs@postgresql.org; Fri, 19 Sep 2014 16:58:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XV1VT-0004aV-3x for pgsql-bugs@postgresql.org; Fri, 19 Sep 2014 16:58:05 +0000 MIME-Version: 1.0 Subject: BUG #11455: PQerrorMessage not reset after PQreset To: pgsql-bugs@postgresql.org From: postgresql-bklyn@sneakemail.com Date: Fri, 19 Sep 2014 16:57:02 +0000 Message-ID: <20140919165702.2558.6058@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11455 Logged by: Caleb Epstein Email address: postgresql-bklyn@sneakemail.com PostgreSQL version: 9.3.4 Operating system: Linux Description: I'm testing application logic to reconnect to my database server after a connection failure. I'm using PQreset() and I notice that the PQerrorMessage() result keeps growing after each failed reconnect. For example, see belwo. My application log messages start with "Database". The "... Resetting" message is followed by a call to PQreset(). The "FATAL" messages are the strings returned to be by PQerrorMessage. Database connection failed. Resetting. Database reconnect failed: FATAL: terminating connection due to administrator command FATAL: terminating connection due to administrator command FATAL: the database system is shutting down Database connection unavailable. Cannot persist Database connection failed. Resetting. Database reconnect failed: FATAL: terminating connection due to administrator command FATAL: terminating connection due to administrator command FATAL: the database system is shutting down FATAL: the database system is shutting down The next error will have 3 instances of "system is shutting down", and so on. Thanks! -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs