When I use psql, the command line tool of PostgreSQL, in interactive mode, it lists data as paginated output.
However, because I use psql in a terminal application which can handle long outputs itself, I rather would like to get the whole output without the paginating with the annoying --more-- line.
Is there any way to customise the paging behavior in psql? I tried to set LESS in the surrounding shell environment to cat, but this din’t help.
Any suggestions?
From the fine
psqlmanual:So you can say this from the
psqlprompt:to turn the pager off. If you want this to always apply, you can add
\pset pager offto your~/.psqlrcfile.You can also use
\?from thepsqlprompt to get a quick summary of the special commands at your disposal.