diff options
author | Bruce Momjian <bruce@momjian.us> | 2023-11-13 14:03:36 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2023-11-13 14:03:36 -0500 |
commit | b64926fbfda6efc0ea51d91a2dabe73abb4a683d (patch) | |
tree | 56edcb7a520b6f5956a5ba8c58b3c123a59d70aa | |
parent | 5a6937ec9d41c5d61b72ce42a927a0d590e79491 (diff) | |
download | postgresql-b64926fbfda6efc0ea51d91a2dabe73abb4a683d.tar.gz postgresql-b64926fbfda6efc0ea51d91a2dabe73abb4a683d.zip |
doc: correct description of libpq's PQsetnonblocking() mode
Reported-by: Yugo NAGATA
Discussion: https://postgr.es/m/20210713115949.702986955f8ccf23fa81073c@sraoss.co.jp
Backpatch-through: 12-16, master already done
-rw-r--r-- | doc/src/sgml/libpq.sgml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 1788bb06e03..7f34755cd5d 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -4941,11 +4941,12 @@ int PQsetnonblocking(PGconn *conn, int arg); </para> <para> - In the nonblocking state, calls to + In the nonblocking state, successful calls to <function>PQsendQuery</function>, <function>PQputline</function>, <function>PQputnbytes</function>, <function>PQputCopyData</function>, - and <function>PQendcopy</function> will not block but instead return - an error if they need to be called again. + and <function>PQendcopy</function> will not block; their changes + are stored in the local output buffer until they are flushed. + Unsuccessful calls will return an error and must be retried. </para> <para> |