Skip to content

Commit 105c1de

Browse files
committed
Pipeline mode disallows multicommand strings
... so mention that in appropriate places of the libpq docs. Backpatch to 14. Reported-by: RekGRpth <rekgrpth@gmail.com> Discussion: https://postgr.es/m/17235-53bb38fc5be593dc@postgresql.org
1 parent e543906 commit 105c1de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/src/sgml/libpq.sgml

+7-1
Original file line numberDiff line numberDiff line change
@@ -4594,6 +4594,11 @@ int PQsendQuery(PGconn *conn, const char *command);
45944594
(on the same connection) until <xref linkend="libpq-PQgetResult"/>
45954595
has returned a null pointer, indicating that the command is done.
45964596
</para>
4597+
4598+
<para>
4599+
In pipeline mode, command strings containing more than one SQL command
4600+
are disallowed.
4601+
</para>
45974602
</listitem>
45984603
</varlistentry>
45994604

@@ -5046,7 +5051,8 @@ int PQflush(PGconn *conn);
50465051
<xref linkend="libpq-PQpipelineStatus"/> can be used
50475052
to test whether pipeline mode is active.
50485053
In pipeline mode, only <link linkend="libpq-async">asynchronous operations</link>
5049-
are permitted, and <literal>COPY</literal> is disallowed.
5054+
are permitted, command strings containing multiple SQL commands are
5055+
disallowed, and so is <literal>COPY</literal>.
50505056
Using synchronous command execution functions
50515057
such as <function>PQfn</function>,
50525058
<function>PQexec</function>,

0 commit comments

Comments
 (0)