pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: psql: call clearerr() just before printing 2+ messages / 1 participants [nested] [flat]
* pgsql: psql: call clearerr() just before printing @ 2021-03-29 21:45 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-03-29 21:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8d645a116ef6e04bfb03e259149b8e163dbdf50c Modified Files -------------- src/fe_utils/print.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: psql: call clearerr() just before printing @ 2021-03-29 21:45 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-03-29 21:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-03-29 21:45 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-03-29 21:45 pgsql: psql: call clearerr() just before printing Alvaro Herrera <alvherre@alvh.no-ip.org> 2021-03-29 21:45 pgsql: psql: call clearerr() just before printing Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox