Re: psql scroll horizontal - Mailing list pgsql-novice

From Manuel Sugawara
Subject Re: psql scroll horizontal
Date
Msg-id m3k72u6emh.fsf@conexa.fciencias.unam.mx
Whole thread Raw
In response to psql scroll horizontal  (Nabil Sayegh <postgresql@e-trolley.de>)
Responses Re: psql scroll horizontal  (Nabil Sayegh <postgresql@e-trolley.de>)
List pgsql-novice
Nabil Sayegh <postgresql@e-trolley.de> writes:

> Hi,
>
> does anybody know how I can have psql scroll wide tables instead of
> wrapping them?
>
> At the moment it uses the pager if there are too many rows. But
> although I can scroll horizontal then, it still wraps some rows
> around.

The problem is with your pager. Using less (set the PAGER environment
variable to less) and setting the LESS environment variable to -S (see
the less man page for details) will do the work.

>
> Additionally It would be nice, if the pager is used as soon as the
> width is to wide (independant from the amount of rows).

It would, indeed.

Regards,
Manuel.

pgsql-novice by date:

Previous
From: Nabil Sayegh
Date:
Subject: psql scroll horizontal
Next
From: Nabil Sayegh
Date:
Subject: Re: psql scroll horizontal