diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-03-11 05:55:13 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-03-11 05:55:13 -0500 |
commit | 06711de9d9d4e122d4e4c9b801b471e048281f48 (patch) | |
tree | 227c03313dcaf0bbb31190961c89ae700f9c6847 /doc/src | |
parent | ad44d505917baf35994f3eabdb42657bf2342b99 (diff) | |
download | postgresql-06711de9d9d4e122d4e4c9b801b471e048281f48.tar.gz postgresql-06711de9d9d4e122d4e4c9b801b471e048281f48.zip |
Document that libpq's PQgetResult() should be called after a fatal error
to fully process errors.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 9 |
1 files changed, 9 insertions, 0 deletions
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 <function>PQconsumeInput</function>. </para> + + <note> + <para> + Even when <function>PQresultStatus</function> indicates a fatal + error, <function>PQgetResult</function> should be called until it + returns a null pointer to allow <application>libpq</> to + process the error information completely. + </para> + </note> </listitem> </varlistentry> </variablelist> |