okbob/pspg
FreeUnix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
About okbob/pspg
pspg (Postgres Pager) is a specialized Unix pager designed for browsing tabular data in the terminal. It was created because standard pagers like less lack support for tabular data. pspg integrates seamlessly with psql and other command-line database clients such as mysql, sqlite, pgcli, monetdb, Trino (Presto SQL), usql, sqlcl (Oracle), and nushell. Key capabilities include freezing header rows and columns, sorting by numeric columns, applying visual themes (e.g., mcview, FoxPro), mouse support, and copying selected cell ranges to the clipboard. It can also be used as a CSV or TSV viewer. Installation is available via Debian/Ubuntu, RedHat/Fedora, and homebrew (macOS). Native Windows is not supported but works under WSL2.
Key Features
Pros & Cons
- Specially designed for tabular data unlike generic pagers like less
- Free and open source with active community on GitHub
- Supports many database clients out of the box
- Lightweight and fast in terminal environments
- Configurable themes and mouse interaction
- Clipboard integration for copying selections
- No native Windows support; requires WSL2 for Windows use
- Limited to terminal-based workflows (no GUI)
- No built-in data transformation or analysis capabilities beyond sorting
- Not for non-tabular file formats