macOS
brew install psql2csvlocal Homebrew formula metadata
brew / rank 4984
Run a query in psql and output the result as CSV. Version 0.12 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#psql2csv.
install
brew install psql2csvlocal Homebrew formula metadata
nix profile install nixpkgs#psql2csvnixpkgs package indexes · pkgs/by-name/ps/psql2csv/package.nix · source: api.github.com
overview
Run a query in psql and output the result as CSV
history
psql2csv is a command-line wrapper for running PostgreSQL queries with psql and writing the results as configurable CSV.
Philipe Fatio created psql2csv as a shell-based frontend that runs a PostgreSQL query through psql and emits CSV. The repository's official documentation presents it as a compact command-line utility rather than a separate database client.
The official README documents distribution through Homebrew, while the supplied package metadata also records Nix packaging. Its deliberately small, single-script form also supports manual installation into PATH.
A query can be supplied as the final argument or through standard input, with CSV written to standard output. Users can control delimiters, quoting, escaping, NULL representation, headers, encoding, time zone, and search path; remaining arguments are forwarded to psql.
psql2csv exemplifies the Unix package tradition of wrapping a capable lower-level client with a narrowly focused command. It makes scripted PostgreSQL-to-CSV export convenient while preserving access to psql connection and variable options.
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.
Credential-bearing paths to review before unattended agent runs.
~/.pgpassexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
psql2csv | 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.
https://github.com/fphilipe/psql2csv
install metadata
| Package key | brew:psql2csv |
|---|---|
| Version | 0.12 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/psql2csv |
| Homepage | https://github.com/fphilipe/psql2csv |
| Repository | https://github.com/fphilipe/psql2csv |
| License | MIT |
| Source archive | https://github.com/fphilipe/psql2csv/archive/refs/tags/v0.12.tar.gz |
| Dependencies | libpq |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | psql2csv |
| Version Scheme | 0 |
| Revision | 1 |
| 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.
psql2csv
nix profile install nixpkgs#psql2csvsource 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.