From 06711de9d9d4e122d4e4c9b801b471e048281f48 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 11 Mar 2011 05:55:13 -0500 Subject: [PATCH] Document that libpq's PQgetResult() should be called after a fatal error to fully process errors. --- doc/src/sgml/libpq.sgml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 49edc51dbac..59b4011b3f6 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -3846,6 +3846,15 @@ PGresult *PQgetResult(PGconn *conn); active and the necessary response data has not yet been read by PQconsumeInput. + + + + Even when PQresultStatus indicates a fatal + error, PQgetResult should be called until it + returns a null pointer to allow libpq to + process the error information completely. + + -- 2.39.5