pspg - Postgres Pager
pspg is a pager with support for tabular data
Install it:
sudo apt install pspg
Then set it as the default pager for psql
in ~/.psqlrc
:
\x auto \pset pager on \pset linestyle unicode \pset border 2 \setenv PAGER 'pspg -bX --no-mouse'
This is particularly useful when combined with yesterday's post