mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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:
@ -4941,11 +4941,12 @@ int PQsetnonblocking(PGconn *conn, int arg);
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In the nonblocking state, calls to
|
In the nonblocking state, successful calls to
|
||||||
<function>PQsendQuery</function>, <function>PQputline</function>,
|
<function>PQsendQuery</function>, <function>PQputline</function>,
|
||||||
<function>PQputnbytes</function>, <function>PQputCopyData</function>,
|
<function>PQputnbytes</function>, <function>PQputCopyData</function>,
|
||||||
and <function>PQendcopy</function> will not block but instead return
|
and <function>PQendcopy</function> 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>
|
||||||
|
Reference in New Issue
Block a user