pgsql: Further adjustment to psql's print_aligned_vertical() function. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Further adjustment to psql's print_aligned_vertical() function.
Date
Msg-id E1a3nTG-0001bF-5i@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2287b874546931e2f33cddcafff2bde58459da1b

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Further adjustment to psql's print_aligned_vertical() function.
Next
From: Bruce Momjian
Date:
Subject: Re: pgsql: postgres_fdw: Add ORDER BY to some remote SQL queries.