Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER - Mailing list pgsql-hackers

From ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Subject Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER
Date
Msg-id d8j7eyv8n4p.fsf@dalvik.ping.uio.no
Whole thread Raw
In response to [HACKERS] proposal: psql: check env variable PSQL_PAGER  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:

> Hi
>
> I wrote a special pager for psql. Surely, this pager is not good for paging
> of man pages. So is not good to set it as global pager. We can introduce
> new env variable PSQL_PAGER for this purpose. It can work similar like
> PSQL_EDITOR variable.
>
> Notes, comments?

There's already the option to put '\setenv PAGER ...' in .psqlrc, but I
guess having it work like EDITOR makes sense for consistency, as well as
not affecting commands spawned from psql via e.g. \!.

- ilmari
-- 
"The surreality of the universe tends towards a maximum" -- Skud's Law
"Never formulate a law or axiom that you're not prepared to live withthe consequences of."
--Skud's Meta-Law
 



pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: [HACKERS] Log LDAP "diagnostic messages"?
Next
From: Дмитрий Воронин
Date:
Subject: Re: [HACKERS] pg_dump issues