pgsize

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 9 Imported by: 0

README

pgsize

Fast size viewer for PostgreSQL clusters (ncdu for pg).

License Go Report Card Go Reference Workflow Status Go Version Latest Release

Preview


Install

Using installation script

curl -fsSL https://raw.githubusercontent.com/hashmap-kz/pgsize/master/scripts/install.sh | sh

Using Go:

go install github.com/hashmap-kz/pgsize@latest

Using Homebrew:

brew tap hashmap-kz/homebrew-tap
brew install pgsize

Or download a binary from the Releases page.


Usage

# Using CLI flags
pgsize -dsn "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable"
pgsize -dsn "host=localhost port=5432 user=postgres password=$mypasswd"

# Using PG* env vars / libpq-style defaults
PGHOST=localhost PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=postgres \
    pgsize
    
# Connect to multiple clusters
pgsize \
  --dsn "postgres://user:pass@dev:5432/db" \
  --dsn "postgres://user:pass@stage:5432/db"

License

MIT. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pg
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL