mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user