Re: psql: \pset pager 'always'?

From: greg(at)turnstep(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Re: psql: \pset pager 'always'?
Date: 2002-09-18 13:40:42
Message-ID: 20020918134142.75F7947639B@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200209180926

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

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-09-18 14:01:11 Re: psql: \pset pager 'always'?
Previous Message Martijn van Oosterhout 2002-09-18 13:40:30 Re: Automatic Indexes from Query Optimization?