Re: psql wrapped format default for backslash-d commands

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: psql wrapped format default for backslash-d commands
Дата
Msg-id 37ed240d0805122339ya433c78oacf5c61af9da9ed9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql wrapped format default for backslash-d commands  (Bryce Nesbitt <bryce2@obviously.com>)
Ответы Re: psql wrapped format default for backslash-d commands  (Bryce Nesbitt <bryce2@obviously.com>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Problem returning strings with pgsql 8.3.x
Следующее
От: Bryce Nesbitt
Дата:
Сообщение: Re: psql wrapped format default for backslash-d commands