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

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix psql's \copy command to ensure that it cycles libpq back to
Дата
Msg-id 20061124230656.1D4B49FB207@postgresql.org
обсуждение исходный текст
Список 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:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/bin/psql:
        copy.c (r1.58 -> r1.58.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/copy.c.diff?r1=1.58&r2=1.58.2.1)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix psql's \copy command to ensure that it cycles libpq back to
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix psql's \copy command to ensure that it cycles libpq back to