function">PQerrorMessage</code></a> to retrieve details.
      </p><p>
       After successfully calling <a class="xref" href="libpq-copy.html#LIBPQ-PQPUTCOPYEND"><code class="function">PQputCopyEnd</code></a>, call
       <a class="xref" href="libpq-async.html#LIBPQ-PQGETRESULT"><code class="function">PQgetResult</code></a> to obtain the final result status of the
       <code class="command">COPY</code> command.  One can wait for this result to be
       available in the usual way.  Then return to normal 