]> granicus.if.org Git - postgresql/commit
Fix psql's \copy command to ensure that it cycles libpq back to the idle state
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Nov 2006 23:07:01 +0000 (23:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Nov 2006 23:07:01 +0000 (23:07 +0000)
commitfc821135fbbcd23d8675985465da2f07b45be93b
tree06158be52a0076ecb461e2d5b0d3ed89aa1d5f91
parentdb8a3fd68038907efb47d0ad3de5e037c9594b7c
Fix psql's \copy command to ensure that it cycles libpq back to the idle state
(in particular, causing the ReadyForQuery message to be eaten) before
returning from do_copy.  The only known consequence of failing to do so is
that get_prompt might show a wrong result for the %x transaction status
escape, as reported by Bernd Helmle; but it's possible there are other issues.

Back-patch as far as 7.4, the oldest version supporting %x.
src/bin/psql/copy.c