A Unix pager with rich table browsing features, designed for PostgreSQL but supporting MySQL, SQLite, and other database clients.
pspg is a Unix pager specifically designed for browsing and interacting with tabular data from command-line database clients. It replaces generic pagers like `less` with features tailored for tables, such as freezing rows/columns, sorting, theme support, and clipboard export. It solves the problem of poorly formatted table navigation in terminal environments.
Database administrators, developers, and data analysts who regularly use command-line SQL clients (e.g., psql, mysql) and need efficient table browsing and data export capabilities directly in the terminal.
Developers choose pspg for its specialized table features, rich customization (themes, keybindings), and broad client support, offering a significantly better experience than generic pagers when working with SQL query results or CSV files.
Unix 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.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows freezing the first few rows or columns for easier navigation of wide tables, a core feature highlighted in the main target section.
Supports 25+ built-in themes and custom theme creation via configuration files, enabling personalized visual styles for different terminal preferences.
Enables copying selected rows, columns, or blocks to the clipboard in formats like CSV, TSV, and SQL, with commands like \copy for seamless data extraction.
Offers full mouse support for scrolling and selection, combined with vi-like keybindings, enhancing usability beyond basic pagers.
The README explicitly states pspg is not ported to MS Windows and only works well inside wsl2, limiting cross-platform use without additional setup.
Requires installation of third-party tools like wl-clipboard or xclip for clipboard functionality, which can fail if not available and adds complexity.
For some clients like sqlcl, extra scripts or tools like qsh are needed, and options like --pgcli-fix may be required, making setup non-trivial.