Re: psql: \pset pager 'always'?

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Re: psql: \pset pager 'always'?
Дата
Msg-id 20020918134142.75F7947639B@postgresql.org
обсуждение исходный текст
Ответ на psql: \pset pager 'always'?  (Antti Haapala <antti.haapala@iki.fi>)
Ответы Re: psql: \pset pager 'always'?  (Martijn van Oosterhout <kleptog@svana.org>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Automatic Indexes from Query Optimization?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: psql: \pset pager 'always'?