]> granicus.if.org Git - postgresql/commit
In psql, use PSQL_PAGER in preference to PAGER, if it's set.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Sep 2017 16:02:06 +0000 (12:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Sep 2017 16:02:13 +0000 (12:02 -0400)
commit5e8304fdce2d5c41ef7a648ed0a622480f8f0a07
treebc6729d626efd6e1ba9bda47a2e518fa49d97259
parentebd346caf41b8e8738a49d96797ceccd04bb04dc
In psql, use PSQL_PAGER in preference to PAGER, if it's set.

This allows the user's environment to set up a psql-specific choice
of pager, in much the same way that we provide PSQL_EDITOR to allow
a psql-specific override of the more widely known EDITOR variable.

Pavel Stehule, reviewed by Thomas Munro

Discussion: https://postgr.es/m/CAFj8pRD3RRk9S1eRbnGm_T6brc3Ss5mohraNzTSJquzx+pmtKA@mail.gmail.com
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/help.c
src/fe_utils/print.c
src/interfaces/libpq/fe-print.c