Re: Proposed patch - psql wraps at window width

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Proposed patch - psql wraps at window width
Дата
Msg-id 200804251500.m3PF0ax12196@momjian.us
обсуждение исходный текст
Ответ на Re: Proposed patch - psql wraps at window width  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Proposed patch - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Alvaro Herrera wrote:
> Bruce Momjian escribi?:
> 
> > Have a 'format=auto' mode that does aligned/wrapped/expanded, but only
> > for screen output --- file/pipe would still use aligned.  And have
> > 'format=wrapped' affect file/pipe by requiring the user to specify the
> > width, or use a default of 72.
> 
> I have a different question.  Why are we mixing file and pipe output?  I
> think the use cases are different and perhaps we should use different
> defaults.
> 
> For example, most people I've seen writing shell scripts involving psql
> output have to pass the -A flag all the time.  Perhaps we could change
> the default output to unaligned for pipes?

Yes, that would make sense to me.

I think the people wanting wrapped to control file/pipe don't want it as
the default, but want _some_ way of getting wrapped output into a file.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Proposed patch - psql wraps at window width
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Proposed patch - psql wraps at window width