aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-03-29 18:34:39 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-03-29 18:34:39 -0300
commit8d645a116ef6e04bfb03e259149b8e163dbdf50c (patch)
tree77104cf7597bc5d56dc4fd8bf5d1d8b2ad2cd725 /contrib/postgres_fdw/postgres_fdw.c
parentaf527705edc3fd0b335264d17e0521c05edc5cca (diff)
downloadpostgresql-8d645a116ef6e04bfb03e259149b8e163dbdf50c.tar.gz
postgresql-8d645a116ef6e04bfb03e259149b8e163dbdf50c.zip
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.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions