pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Catch and report errors while printing result table
Date: Fri, 20 Mar 2020 15:13:45 +0000
Message-ID: <E1jFJLF-0008WH-FZ@gemulon.postgresql.org> (raw)

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

Branch
------
master

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

Modified Files
--------------
src/bin/psql/common.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



Message-ID: <E1jFJLF-0008WH-FZ@gemulon.postgresql.org>
Permalink:  ../E1jFJLF-0008WH-FZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jFJLF-0008WH-FZ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: psql: Catch and report errors while printing result table
  In-Reply-To: <E1jFJLF-0008WH-FZ@gemulon.postgresql.org>
  References: <E1jFJLF-0008WH-FZ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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