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

From Tom Lane
Subject Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER
Date
Msg-id 2326.1504627609@sss.pgh.pa.us
Whole thread Raw
In response to Re: [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:
> [ psql-psql-pager-env-2.patch ]

Pushed, with some fooling with the documentation (notably,
re-alphabetizing relevant lists).

Grepping turned up an additional place that's examining the PAGER
environment variable, namely PQprint() in libpq/fe-print.c.  That's
not used by psql (or anything else in core PG) anymore; we're only
keeping it around for hypothetical external users of libpq.  I debated
whether to make it honor PSQL_PAGER.  I decided not to, since those
external users are by definition not psql ... but I added
a comment about that.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] pg_basebackup throttling doesn't throttle as promised
Next
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER