">PQgetResult</code></a> loop.  This arrangement will
       ensure that a <code class="command">COPY</code> command embedded in a series
       of <acronym class="acronym">SQL</acronym> commands will be executed correctly.
      </p><p>
       Older applications are likely to submit a <code class="command">COPY</code>
       via <a class="xref" href="libpq-exec.html#LIBPQ-PQEXEC"><code class="function">PQexec</code></a> and assume that the transaction
       is done after <a class="xref" href="libpq-copy.h