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
This commit is contained in:
Bruce Momjian 2023-11-13 14:03:37 -05:00
parent d900e74e05
commit 36be8866d8
1 changed files with 4 additions and 3 deletions

View File

@ -4915,11 +4915,12 @@ int PQsetnonblocking(PGconn *conn, int arg);
</para> </para>
<para> <para>
In the nonblocking state, calls to In the nonblocking state, successful calls to
<xref linkend="libpq-PQsendQuery"/>, <xref linkend="libpq-PQputline"/>, <xref linkend="libpq-PQsendQuery"/>, <xref linkend="libpq-PQputline"/>,
<xref linkend="libpq-PQputnbytes"/>, <xref linkend="libpq-PQputCopyData"/>, <xref linkend="libpq-PQputnbytes"/>, <xref linkend="libpq-PQputCopyData"/>,
and <xref linkend="libpq-PQendcopy"/> will not block but instead return and <xref linkend="libpq-PQendcopy"/> will not block; their changes
an error if they need to be called again. are stored in the local output buffer until they are flushed.
Unsuccessful calls will return an error and must be retried.
</para> </para>
<para> <para>