aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-09-05 12:02:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-09-05 12:02:13 -0400
commit5e8304fdce2d5c41ef7a648ed0a622480f8f0a07 (patch)
treebc6729d626efd6e1ba9bda47a2e518fa49d97259 /src/bin/psql/help.c
parentebd346caf41b8e8738a49d96797ceccd04bb04dc (diff)
downloadpostgresql-5e8304fdce2d5c41ef7a648ed0a622480f8f0a07.tar.gz
postgresql-5e8304fdce2d5c41ef7a648ed0a622480f8f0a07.zip
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
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 724cf8e761e..9d366180af5 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -459,8 +459,6 @@ helpVariables(unsigned short int pager)
fprintf(output, _(" COLUMNS\n"
" number of columns for wrapped format\n"));
- fprintf(output, _(" PAGER\n"
- " name of external pager program\n"));
fprintf(output, _(" PGAPPNAME\n"
" same as the application_name connection parameter\n"));
fprintf(output, _(" PGDATABASE\n"
@@ -481,6 +479,8 @@ helpVariables(unsigned short int pager)
" how to specify a line number when invoking the editor\n"));
fprintf(output, _(" PSQL_HISTORY\n"
" alternative location for the command history file\n"));
+ fprintf(output, _(" PSQL_PAGER, PAGER\n"
+ " name of external pager program\n"));
fprintf(output, _(" PSQLRC\n"
" alternative location for the user's .psqlrc file\n"));
fprintf(output, _(" SHELL\n"