dbTalk Databases Forums  

psql scroll horizontal

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss psql scroll horizontal in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nabil Sayegh
 
Posts: n/a

Default psql scroll horizontal - 02-10-2004 , 08:44 AM






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.

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

TIA
--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Manuel Sugawara
 
Posts: n/a

Default Re: psql scroll horizontal - 02-10-2004 , 11:14 AM






Nabil Sayegh <postgresql (AT) e-trolley (DOT) de> writes:

Quote:
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.

Quote:
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.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
Nabil Sayegh
 
Posts: n/a

Default Re: psql scroll horizontal - 02-10-2004 , 03:32 PM



Manuel Sugawara wrote:
Quote:
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.
Thanks
-S was exactly what I wanted.

bye
--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #4  
Old   
Greg Sabino Mullane
 
Posts: n/a

Default Re: psql scroll horizontal - 02-11-2004 , 10:01 PM




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Quote:
does anybody know how I can have psql scroll wide tables instead
of wrapping them?
Use a pager that is capable of "wide" output. On many systems,
this is accomplished by the program "less"

Use "\pset pager always" inside of psql to force it to always
invoke the pager.

- --
Greg Sabino Mullane greg (AT) turnstep (DOT) com
PGP Key: 0x14964AC8 200402112300

-----BEGIN PGP SIGNATURE-----

iD8DBQFAKvqUvJuQZxSWSsgRAl81AJ9qYx76Qnd0rFFKgB4SrU 0MItR7QQCfVvbr
T5newkyKR02seKuqcqOVCTE=
=mZoS
-----END PGP SIGNATURE-----



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.