macOS
brew install pspglocal Homebrew formula metadata
sudo port install pspgMacPorts ports tree · databases/pspg/Portfile · source: api.github.com
brew / rank 3642
Unix pager optimized for psql. Version 5.8.16 via Homebrew; verified 2026-09-13. Also installable with debian: sudo apt install pspg.
install
brew install pspglocal Homebrew formula metadata
sudo port install pspgMacPorts ports tree · databases/pspg/Portfile · source: api.github.com
sudo apk add pspgAlpine Linux edge package indexes · pspg · source: dl-cdn.alpinelinux.org
sudo apt install pspgDebian stable package indexes · pspg · source: deb.debian.org
sudo dnf install pspgFedora Rawhide package metadata · pspg · source: dl.fedoraproject.org
nix profile install nixpkgs#pspgnixpkgs package indexes · pkgs/by-name/ps/pspg/package.nix · source: api.github.com
sudo zypper install pspgopenSUSE Tumbleweed package metadata · pspg · source: download.opensuse.org
overview
Unix pager optimized for psql
history
pspg is a Unix terminal pager designed for browsing tabular output, especially results produced by PostgreSQL's psql client. It retains the familiar pager workflow while adding table-oriented navigation and presentation features.
The author created pspg after finding that less, although commonly used with psql, lacked special support for tabular output. The project developed from that specialized PostgreSQL pager into a richer table browser with CSV and TSV input, themes, searching, sorting, frozen rows and columns, clipboard export, streaming, and watch modes.
The official README documents availability through Debian and Ubuntu, Fedora, Homebrew, Alpine Linux, FreeBSD, OpenBSD, MacPorts, and other packaging channels. It also describes integrations with database clients including psql, MySQL, SQLite, pgcli, Trino, sqlcl, and usql.
Users commonly set PSQL_PAGER to pspg, optionally with display flags. The program can also read files or pipelines directly, view CSV and TSV data, refresh query output in watch mode, and export selected table regions to the clipboard. Configuration defaults to ~/.pspgconf; PSPG_CONF can select another file.
pspg is notable in package-manager culture because it turns the conventional Unix pager slot into a table-aware database interface. Its presence across several operating-system repositories makes a specialized PostgreSQL-adjacent utility easy to add without replacing psql itself.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.pspgconfexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pspg | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:pspg |
|---|---|
| Version | 5.8.16 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pspg |
| Homepage | https://github.com/okbob/pspg |
| Repository | https://github.com/okbob/pspg |
| License | BSD-2-Clause |
| Source archive | https://github.com/okbob/pspg/archive/refs/tags/5.8.16.tar.gz |
| Last updated | 2026-09-13T12:46:20Z |
| Pulse | updated |
| Dependencies | libpq, ncurses, readline |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | Add the following line to your psql profile (e.g. ~/.psqlrc) \setenv PAGER pspg \pset border 2 \pset linestyle unicode |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pspg |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pspg 5.8.9-1
PostgreSQL pager
sudo apt install pspgpspg
nix profile install nixpkgs#pspgpspg 5.8.1-1build2
PostgreSQL pager
sudo apt install pspgpspg 5.8.16-r0
A unix pager optimized for psql
sudo apk add pspgpspg-doc 5.8.16-r0
A unix pager optimized for psql (documentation)
sudo apk add pspg-docpspg 5.8.16-2.fc45
A unix pager optimized for psql
sudo dnf install pspgpspg 5.8.16-1.3
Pager for PostgreSQL, MariaDB, Percona, and MySQL
sudo zypper install pspgpspg
sudo port install pspgsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.