From: Peter Eisentraut Date: Sat, 9 Feb 2013 04:39:22 +0000 (-0500) Subject: psql: Improve expanded print output in tuples-only mode X-Git-Tag: REL9_3_BETA1~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ade58a4ea318d0ab8548ab94e49a3b80fdbeb0d;p=postgresql psql: Improve expanded print output in tuples-only mode When there are zero result rows, in expanded mode, "(No rows)" is printed. So far, there was no way to turn this off. Now, when tuples-only mode is turned on, nothing is printed in this case. --- diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 2a34fb319c..2aa313407e 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -1169,7 +1169,8 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout) if (cont->cells[0] == NULL && cont->opt->start_table && cont->opt->stop_table) { - fprintf(fout, _("(No rows)\n")); + if (!opt_tuples_only) + fprintf(fout, _("(No rows)\n")); return; }