macOS
brew install pg_toplocal Homebrew formula metadata
brew / rank 8375
Monitor PostgreSQL processes. Version 3.7.0 via Homebrew; verified 2026-09-16. Also installable with nix: nix profile install nixpkgs#pg_top.
install
brew install pg_toplocal Homebrew formula metadata
sudo apk add pg_topAlpine Linux edge package indexes · pg_top · source: dl-cdn.alpinelinux.org
sudo dnf install pg_topFedora Rawhide package metadata · pg_top · source: dl.fedoraproject.org
nix profile install nixpkgs#pg_topnixpkgs package indexes · pkgs/by-name/pg/pg_top/package.nix · source: api.github.com
sudo zypper install pg_topopenSUSE Tumbleweed package metadata · pg_top · source: download.opensuse.org
overview
Monitor PostgreSQL processes
history
pg_top is an interactive top-like monitor for PostgreSQL processes, queries, locks, I/O, and replication activity.
pg_top was derived from Unix top to display PostgreSQL activity in a familiar full-screen terminal interface. The project was originally known as ptop and was renamed pg_top around the 3.6.2 release cycle in 2008.
Development later moved to the current PostgreSQL-community GitLab project. The 4.x line modernized the utility while preserving its core process view and adding views for SQL statements, query plans, locks, per-process I/O, and replication.
pg_top became a PostgreSQL community project and is distributed by multiple Unix-like package ecosystems. Its familiar top-style interface makes it useful to database administrators who want interactive process and query inspection without deploying a larger monitoring stack.
Administrators run pg_top in a terminal to inspect PostgreSQL processes and active SQL, view query plans and locks, and examine I/O or replication statistics. Monitoring a remote database's operating-system process details requires the pg_proctab extension on the target database.
pg_top is part of the Unix tradition of small, interactive observability tools adapted to a particular subsystem. Its lineage from Unix top, long release history, terminal interface, and availability across package managers make it a recognizable PostgreSQL administration utility.
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.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pg_top | 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:pg_top |
|---|---|
| Version | 3.7.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pg_top |
| Homepage | https://pg_top.gitlab.io |
| Upstream docs | https://pg_top.gitlab.io |
| License | BSD-3-Clause |
| Source archive | https://ftp.postgresql.org/pub/projects/pgFoundry/ptop/pg_top/3.7.0/pg_top-3.7.0.tar.bz2 |
| Last updated | 2026-09-16T14:00:33Z |
| Pulse | updated |
| Dependencies | libpq |
| Build dependencies | autoconf, automake, libtool |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pg_top |
| Version Scheme | 0 |
| Revision | 4 |
| 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.
pg_top
nix profile install nixpkgs#pg_toppg_top 4.1.3-r0
top for PostgreSQL
sudo apk add pg_toppg_top-doc 4.1.3-r0
top for PostgreSQL (documentation)
sudo apk add pg_top-docpg_top 4.1.3-3.fc45
'top' for PostgreSQL process
sudo dnf install pg_toppg_top 4.1.3-1.3
top for postgresql
https://gitlab.com/pg_top/pg_top
sudo zypper install pg_topsource 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.