Further adjustment to psql's print_aligned_vertical() function.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6fe8ca0a2f8ac5ce2656addb0f6741b5315a8a23
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-12-01T16:07:29Z
Releases: 9.5.0
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.

Files

PathChange+/−
src/bin/psql/print.c modified +2 −1