diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 49edc51dba..59b4011b3f 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. + +