pgsql: Further adjustment to psql's print_aligned_vertical() function.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Further adjustment to psql's print_aligned_vertical() function.
Date: 2015-12-01 16:07:45
Message-ID: E1a3nSz-0001aM-Pc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Further adjustment to psql's print_aligned_vertical() function.

We should ignore output_columns unless it's greater than zero.
A zero means we couldn't get any information from ioctl(TIOCGWINSZ);
in that case the expected behavior is to print the data at native width,
not to wrap it at the smallest possible value. print_aligned_text()
gets this consideration right, but print_aligned_vertical() lost track
of this detail somewhere along the line.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6fe8ca0a2f8ac5ce2656addb0f6741b5315a8a23

Modified Files
--------------
src/bin/psql/print.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-12-01 16:08:02 pgsql: Further adjustment to psql's print_aligned_vertical() function.
Previous Message Teodor Sigaev 2015-12-01 15:56:58 pgsql: Use pg_rewind when target timeline was switched