Re: Proposed patch - psql wraps at window width

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Proposed patch - psql wraps at window width
Дата
Msg-id 200804241550.m3OFoi912453@momjian.us
обсуждение исходный текст
Ответ на Re: Proposed patch - psql wraps at window width  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Proposed patch - psql wraps at window width  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Peter Eisentraut wrote:
> Am Donnerstag, 24. April 2008 schrieb Gregory Stark:
> > b) If you dump to a file it will still respect COLUMNS. This might be a bit
> > ? ?weird since bash sets COLUMNS so your file width will be based on the
> > size of your terminal. But people also do things like COLUMNS=120 psql -o f
> > ...
> 
> Well, the feature is labeled "psql wraps at window width".  If the output 
> isn't on a window, then it shouldn't wrap.  I certainly don't want the output 
> to a file to depend on the size of the window at the time.
> 
> Perhaps having a variable inside psql to control this explicitly could be 
> useful for the case you describe.

\pset columns will wrap to the specified width for file output.

--  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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Index AM change proposals, redux
Следующее
От: Tom Lane
Дата:
Сообщение: hm, why isn't SGT in the default timezone abbreviations list?