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

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output
Date
Msg-id 558C136E.8090802@gmx.net
Whole thread Raw
Responses Re: Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Re: [COMMITTERS] pgsql: psql: show proper row count in \x mode for zero-column output  (Bruce Momjian <bruce@momjian.us>)
List 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?




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Next
From: Tom Lane
Date:
Subject: Schedule for 9.5alpha1