Re: psql: \pset pager 'always'? - Mailing list pgsql-general

From greg@turnstep.com
Subject Re: psql: \pset pager 'always'?
Date
Msg-id 20020918134142.75F7947639B@postgresql.org
Whole thread Raw
In response to psql: \pset pager 'always'?  (Antti Haapala <antti.haapala@iki.fi>)
Responses Re: psql: \pset pager 'always'?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Can someone supply a patch to automatically invoke the pager if the
> output width is greater than the screen?  We already test for screen
> rows but not for screen width.

Easily done, but I am not sure that this is the right thing to do.
A pager is designed to handle excess vertical input, but not all
can handle excess horizontal input (the width). I suspect that doing
so would not be a good idea for the same reason given to me when I
asked "why not send everything to the pager?": some systems force you
to specifically exit the pager; this can be real annoying for cases
with small input.

Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200209180926


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

iD8DBQE9iID8vJuQZxSWSsgRAk2mAKDRRopF9H7PMW18+qq5WgPHRiga/QCcCG2e
G/ZxYw5fqwGxov9hVd+mhV0=
=9nqS
-----END PGP SIGNATURE-----



pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Automatic Indexes from Query Optimization?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: psql: \pset pager 'always'?