Re: Proposed patch - psql wraps at window width - Mailing list pgsql-patches

From Bryce Nesbitt
Subject Re: Proposed patch - psql wraps at window width
Date
Msg-id 48082042.4070102@obviously.com
Whole thread Raw
In response to Re: Proposed patch - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
<br /> Bruce Momjian wrote:<br /><blockquote cite="mid:200804171407.m3HE7EW24318@momjian.us" type="cite"><blockquote
type="cite"><prewrap="">I also found that for hugely wide output it was better to give up (do 
 
nothing), rather than mangle the output in a futile attempt to squash it 
to the window width.  So there is one more clause in the wrapping if.   </pre></blockquote><pre wrap="">
Was it because of performance?  I have a way to fix that by decrementing
by more than one to shrink a column?  I am attaching a new patch with my
improved loop.  It remembers the previous maximum ratio.</pre></blockquote> No!  Performance was not the issue.<br />
Theout just looked like a jumble onscreen when the line was word wrapped BUT did not fit on the screen anyway.<br /><br
/>To increase the number of layouts that fit, a co-worker suggested I squeeze out the 2 spaces in each column
header.<br/><br />                                           -Bryce<br /><br /> 

pgsql-patches by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: Proposed patch - psql wraps at window width
Next
From: Tom Lane
Date:
Subject: Re: Proposed patch - psql wraps at window width