pgsql: Remove useless PGRES_COPY_BOTH "support" in psql.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove useless PGRES_COPY_BOTH "support" in psql.
Дата
Msg-id E1SFWc7-0002da-3F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove useless PGRES_COPY_BOTH "support" in psql.

There is no existing or foreseeable case in which psql should see a
PGRES_COPY_BOTH PQresultStatus; and if such a case ever emerges, it's a
pretty good bet that these code fragments wouldn't do the right thing
anyway.  Remove them, and let the existing default cases do the appropriate
thing, namely emit an "unexpected PQresultStatus" bleat.

Noted while working on libpq row processor patch, for which I was
considering adding a PGRES_SUSPENDED status code --- the same default-case
treatment would be appropriate for that.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cb917e1544612c187c74fed1a990e26820514c8a

Modified Files
--------------
src/bin/psql/common.c |   24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix syslogger to not lose log coherency under high load.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Add a "row processor" API to libpq for better handling of large