]> 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:06:56 +0000 (23:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Nov 2006 23:06:56 +0000 (23:06 +0000)
commit2f523a6f53e5929b8b72df620a16e3981488eac0
tree938be63b9f1f8ce25fe85eca813a8548c6464856
parent35f9bf3725c164fa302e748f6b063dafce3c4027
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