Re: psql wrapped format default for backslash-d commands - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: psql wrapped format default for backslash-d commands
Date
Msg-id 37ed240d0805122339ya433c78oacf5c61af9da9ed9@mail.gmail.com
Whole thread Raw
In response to Re: psql wrapped format default for backslash-d commands  (Bryce Nesbitt <bryce2@obviously.com>)
Responses Re: psql wrapped format default for backslash-d commands  (Bryce Nesbitt <bryce2@obviously.com>)
List pgsql-hackers
On Tue, May 13, 2008 at 4:12 PM, Bryce Nesbitt <bryce2@obviously.com> wrote:
>
>  Tom Lane wrote:
>>
>>  After experimenting for a bit, I'd say "never". This output format is
>> extremely ugly. Maybe if it had enough smarts not to break in the
>> middle of words ...
>>  regards, tom lane
>
>  Yet, wrapped is the same as aligned, if the lines fit!
>
>  Ugly to wrap? Yes.
>  Uglier than the sea of pipes you get when aligned output wraps itself?
>
>  Well I suppose you have to pick your preferred version of ugly.  I find it
> very hard to line up columns when presented with a sea of pipes, and highly
> annoying to constantly adjust my window width to see a query, especially if
> only one or two rows are too large.
>

I really like the idea of wrapping, but after playing with the format
a bit myself, I have to agree with Tom that breaking in the middle of
words produces some very nasty output.

If the format could be improved to only wrap on word boudaries, that
would increase its appeal dramatically.

Anybody got a rough idea how difficult it would be to add
word-awareness int o the wrapping code?

Cheers,
BJ


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Problem returning strings with pgsql 8.3.x
Next
From: Bryce Nesbitt
Date:
Subject: Re: psql wrapped format default for backslash-d commands