pgsql: psql: call clearerr() just before printing

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: psql: call clearerr() just before printing
Дата
Msg-id E1lQzhk-0002w3-Ml@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
psql: call clearerr() just before printing

We were never doing clearerr() on the output stream, which results in a
message being printed after each result once an EOF is seen:

could not print result table: Success

This message was added by commit b03436994bcc (in the pg13 era); before
that, the error indicator would never be examined.  So backpatch only
that far back, even though the actual bug (to wit: the fact that the
error indicator is never cleared) is older.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f50dc2c725fd546b994f228101211ae50e6858e5

Modified Files
--------------
src/fe_utils/print.c | 3 +++
1 file changed, 3 insertions(+)


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

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Adjust design of per-worker parallel seqscan data struct
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode