I can't set less
as pager in psql.
This is my environment:
~/.psqlrc
contents:
# \setenv PAGER less
\x auto
\timing
\set VERBOSITY verbose
\pset null 'NULL'
\pset pager on
\set HISTSIZE
\set PROMPT1 '(%n@%M:%>) [%/] > '
\set PROMPT2 '%[%033[8m%](%n@%M:%>) [%/] >[%033[0m%]%'
env | grep PAGER
:
PAGER=less
Neverthless this, when I digit \dSpaceTabTaby I get:
table another_table
table another_table
...
--More--
The display of this line (--More--
) and the forward-only scrolling capability in tab-completion come from the internal pager of the readline
library, as opposed to an external pager. psql
lets this library handle the UI-side of tab-completion.
This paging may be turned off in .inputrc
with set page-completions to off
, but it's not replaceable by an external program, at least not in the current versions of GNU readline.
In the context of displaying query results, the PAGER
environment variable normally works as documented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With