pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Further adjustment to psql's print_aligned_vertical() function. 2+ messages / 1 participants [nested] [flat]
* pgsql: Further adjustment to psql's print_aligned_vertical() function. @ 2015-12-01 16:07 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2015-12-01 16:07 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Further adjustment to psql's print_aligned_vertical() function. @ 2015-12-01 16:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2015-12-01 16:08 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-12-01 16:08 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-12-01 16:07 pgsql: Further adjustment to psql's print_aligned_vertical() function. Tom Lane <tgl@sss.pgh.pa.us> 2015-12-01 16:08 pgsql: Further adjustment to psql's print_aligned_vertical() function. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox