pgsql: Fix psql's \copy command to ensure that it cycles libpq back to - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix psql's \copy command to ensure that it cycles libpq back to
Date
Msg-id 20061124230707.9DDEA9FB20D@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/bin/psql:
        copy.c (r1.33.4.1 -> r1.33.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/copy.c.diff?r1=1.33.4.1&r2=1.33.4.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix psql's \copy command to ensure that it cycles libpq back to
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Update release notes for RC1.