DOKK / manpages / debian 11 / pspg / pspg.1.en
PSPG(1) User Commands PSPG(1)

pspg - PostgreSQL pager

pspg is a Unix pager designed for table browsing.

pspg [OPTION] [file]

about authors
show this help
show version
open file
quit if content is one screen
can reopen closed FIFO (0, 1, 2)
force interactive mode
don't try to deduce format from file suffix
not interactive mode (only for csv and query)
don't watch inotify event of file
don't use own mouse handling
without reset searching on sigint (CTRL C)
don't use optional xterm mouse mode
use std pager when content is not table
without exit on sigint(CTRL C or Escape)
try to fix some pgcli related issues
exit on F3 like mc viewers
rows reserved for specific purposes
read input forever
preserve content after exit

force ascii
black-white style
set color style number (0..22)
row, column labels use bold font
cursor use bold font
type of borders (0..2)
header separator uses double lines
replace ascii borders by unicode borders
rows with wrong column numbers are ignored
STRING used instead NULL

Searching options

don't highlight lines for searches
ignore case in searches that do not contain uppercase
ignore case in all searches

freeze N columns (0..9)
status bar like less pager
show line number column
don't show bottom, top bar or both
row cursor will be hidden
don't use beep when scroll is not possible
cursor is visible only when data has table format
show vertical column cursor

input stream has csv format
char used as field separator
specify header line usage
columns with substr in name are ignored
input stream has tsv format

execute query
the query (or read file) is repeated every time (sec)

Connection options

database name
database server host (default: "local socket")
database server port (default: "5432")
database user name
force password prompt

log debug info to file
wait NUM seconds to allow attach from a debugger

pspg shares lot of key commands with less pager or vi editor.

February 2021 pspg 4.1.0