Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output
Date: 2015-06-25 14:42:54
Message-ID: 558C136E.8090802@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 3/24/15 9:04 PM, Bruce Momjian wrote:
> psql: show proper row count in \x mode for zero-column output
>
> Also, fix pager enable selection for such cases, and other cleanups for
> zero-column output.
>
> Report by Thom Brown
>
> Branch
> ------
> master
>
> Details
> -------
> http://git.postgresql.org/pg/commitdiff/376a0c4547fe98c45476647596ce9c9b394f8415

This change added an extra blank line to the output of a zero-row result.

Compare:

[9.4]
$ psql -X -d postgres -c 'select * from pg_class where false' -x
(No rows)
$

[9.5]
$ psql -X -d postgres -c 'select * from pg_class where false' -x
(0 rows)

$

Was that intentional?

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-06-25 14:45:07 pgsql: Docs: fix claim that to_char('FM') removes trailing zeroes.
Previous Message Fujii Masao 2015-06-24 13:30:38 pgsql: Add index terms for functions jsonb_set and jsonb_pretty.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-06-25 14:50:44 Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Previous Message Andres Freund 2015-06-25 14:15:00 Re: RFC: replace pg_stat_activity.waiting with something more descriptive