Re: How to prevent clear screen when query finish ?
От | Alban Hertroys |
---|---|
Тема | Re: How to prevent clear screen when query finish ? |
Дата | |
Msg-id | CAF-3MvMTG=Cq7GSh9RWCJUtzzg0+TVmJO-YR9LFHAKmLnVbZcw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: How to prevent clear screen when query finish ? (Adrian Klaver <adrian.klaver@gmail.com>) |
Ответы |
How to find transaction ID
|
Список | pgsql-general |
On 7 August 2013 18:01, Adrian Klaver <adrian.klaver@gmail.com> wrote:
On 08/07/2013 08:53 AM, Condor wrote:http://www.postgresql.org/docs/9.2/interactive/app-psql.html
pager
Controls use of a pager program for query and psql help output. If the environment variable PAGER is set, the output is piped to the specified program. Otherwise a platform-dependent default (such as more) is used.--
If you use less for pager and want this behaviour system-wide, you'll want to set another env variable: setenv LESS -X (I use tcsh) or export LESS=-X if you use bash.
That makes less behave properly (not clearing the screen) after closing man-pages and such.
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.
В списке pgsql-general по дате отправления: