Re: \l of psql 8.4 looks ... unreadable on 80char default

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: \l of psql 8.4 looks ... unreadable on 80char default
Дата
Msg-id 87zlgi4ho6.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: \l of psql 8.4 looks ... unreadable on 80char default  (Harald Armin Massa <haraldarminmassa@gmail.com>)
Ответы Re: \l of psql 8.4 looks ... unreadable on 80char default  (Harald Armin Massa <haraldarminmassa@gmail.com>)
Список pgsql-general
Harald Armin Massa <haraldarminmassa@gmail.com> writes:

> Thanks!
>
>> What is your $COLUMNS set to?  This should have wrapped to fit into the
>> screen with.  Also look at \pset columns:
>
> $COLUMNS was not set at all ... guess that is a usual environment
> variable on bash. Setting it to 80 works.

COLUMNS wasn't set and \pset columns wasn't set? What environment were you
running this psql command in? Was the output redirected anywhere with \o or
with > on the commandline?

We had a long argument about how this should work a while back so I suspect
people aren't psyched about reopening it, but while I don't think the current
logic is right I don't think wrapping to 80 columns when your terminal is
wider is one of the current broken cases. It tends to fail in the opposite
direction of randomly not wrapping at all so it's kind of surprising to see
your experience.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL training!

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

Предыдущее
От: Chander Ganesan
Дата:
Сообщение: Re: postgres wish list
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: postgres wish list