Skip to content

Commit 4b48770

Browse files
committed
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
1 parent f76b975 commit 4b48770

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5213,11 +5213,12 @@ int PQsetnonblocking(PGconn *conn, int arg);
52135213
</para>
52145214

52155215
<para>
5216-
In the nonblocking state, calls to
5216+
In the nonblocking state, successful calls to
52175217
<xref linkend="libpq-PQsendQuery"/>, <xref linkend="libpq-PQputline"/>,
52185218
<xref linkend="libpq-PQputnbytes"/>, <xref linkend="libpq-PQputCopyData"/>,
5219-
and <xref linkend="libpq-PQendcopy"/> will not block but instead return
5220-
an error if they need to be called again.
5219+
and <xref linkend="libpq-PQendcopy"/> will not block; their changes
5220+
are stored in the local output buffer until they are flushed.
5221+
Unsuccessful calls will return an error and must be retried.
52215222
</para>
52225223

52235224
<para>

0 commit comments

Comments
 (0)