Re: psql scroll horizontal

From: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
To: Nabil Sayegh <postgresql(at)e-trolley(dot)de>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: psql scroll horizontal
Date: 2004-02-10 17:14:30
Message-ID: m3k72u6emh.fsf@conexa.fciencias.unam.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Nabil Sayegh <postgresql(at)e-trolley(dot)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.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Francisco 2004-02-10 17:50:37 Re: Can a user change their own password?
Previous Message user 2004-02-10 16:48:01 Re: Help