psql: Catch and report errors while printing result table
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 20 Mar 2020 15:04:15 +0000 (16:04 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 20 Mar 2020 15:04:15 +0000 (16:04 +0100)
commitb03436994bcc4909dd644fd5ae6d9a9acdf30da5
tree20babd81d95f96458caa3baa081b4322a8a2fe0a
parent85f6b49c2c53fb1e08d918ec9305faac13cf7ad6
psql: Catch and report errors while printing result table

Errors (for example I/O errors or disk full) while printing out result
tables were completely ignored, which could result in silently
truncated output in scripts, for example.  Fix by adding some basic
error checking and reporting.

Author: Daniel Verite <daniel@manitou-mail.org>
Author: David Zhang <david.zhang@highgo.ca>
Discussion: https://www.postgresql.org/message-id/flat/9a0b3c8d-ee14-4b1d-9d0a-2c993bdabacc@manitou-mail.org
src/bin/psql/common.c