]> granicus.if.org Git - postgresql/commit
libpq failed to cope with COPY FROM STDIN if the command was issued
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Aug 2003 18:56:21 +0000 (18:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Aug 2003 18:56:21 +0000 (18:56 +0000)
commitc01641f8aed00642163b7eb8748a297668a990de
tree8cc98b812370e21206b926fded6446b11c06e16d
parent0be731ad4441bcb8d2aea809c08c37a4a5d831ce
libpq failed to cope with COPY FROM STDIN if the command was issued
via extended query protocol, because it sends Sync right after Execute
without realizing that the command to be executed is COPY.  There seems
to be no reasonable way for it to realize that, either, so the best fix
seems to be to make the backend ignore Sync during copy-in mode.  Bit of
a wart on the protocol, but little alternative.  Also, libpq must send
another Sync after terminating the COPY, if the command was issued via
Execute.
doc/src/sgml/protocol.sgml
src/backend/commands/copy.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/libpq-int.h