From 8ade58a4ea318d0ab8548ab94e49a3b80fdbeb0d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 8 Feb 2013 23:39:22 -0500 Subject: [PATCH] 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. --- src/bin/psql/print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0