macOS
brew install pgformatterlocal Homebrew formula metadata
sudo port install pgFormatterMacPorts ports tree · databases/pgFormatter/Portfile · 来源: api.github.com
安装
brew install pgformatterlocal Homebrew formula metadata
sudo port install pgFormatterMacPorts ports tree · databases/pgFormatter/Portfile · 来源: api.github.com
sudo apt install pgformatterDebian stable package indexes · pgformatter · 来源: deb.debian.org
nix profile install nixpkgs#pgformatternixpkgs package indexes · pkgs/by-name/pg/pgformatter/package.nix · 来源: api.github.com
sudo pacman -S pgformatterArch Linux sync databases · pgformatter · 来源: geo.mirror.pkgbuild.com
概览
PostgreSQL syntax beautifier
历史
pgFormatter is Gilles Darold's formatter for PostgreSQL SQL and PL/pgSQL, usable as the `pg_format` console program or as a CGI and online formatter.
Gilles Darold created pgFormatter as a PostgreSQL SQL and PL/pgSQL beautifier; official source copyright begins in 2012. The project incorporates a modified SQL::Beautify module and credits substantial later refactoring by Hubert Lubaczewski.
The project evolved beyond basic pretty-printing to support multiple SQL standards, PostgreSQL-specific syntax, configurable casing and indentation, anonymization, placeholders, editor integrations, a JSON-capable CGI interface, and automated hook workflows.
pgFormatter is packaged by Homebrew, Debian, Ubuntu, MacPorts, Nix, and Arch Linux according to source_facts.package-manager. Its repository also supplies a pre-commit hook definition and documents editor, container, and automation workflows.
Users format one or more files or stdin with `pg_format`, write to stdout or a selected output, or update files in place. Persistent options can be stored in a project-local, home-directory, or XDG configuration file.
Common workflows include editor format commands, pre-commit hooks, CI checks, Docker pipelines, anonymizing literals before sharing SQL, and the official web/CGI formatter.
pgFormatter fills for PostgreSQL SQL a role analogous to established language formatters: it makes formatting repeatable in editors, hooks, scripts, and CI while understanding PostgreSQL-specific SQL and PL/pgSQL constructs.
Its combination of a Perl CLI, CGI interface, online formatter, stdin/stdout operation, in-place editing, and persistent configuration makes it especially composable in Unix-oriented development environments.
安全态势
没有找到 pgformatter 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.
./.pg_format~/.pg_format$XDG_CONFIG_HOME/pg_format/pg_format.conf./.pg_format%USERPROFILE%\.pg_format可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pg_format | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/darold/pgFormatter
安装元数据
| 软件包键 | brew:pgformatter |
|---|---|
| 版本 | 5.11 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pgformatter |
| 主页 | https://sqlformat.darold.net/ |
| 仓库 | https://github.com/darold/pgFormatter |
| 上游文档 | https://sqlformat.darold.net/ |
| 许可证 | PostgreSQL |
| 源码归档 | https://github.com/darold/pgFormatter/archive/refs/tags/v5.11.tar.gz |
| 最后更新 | 2026-09-13T11:25:12Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pgformatter |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
pgformatter 5.6-1
PostgreSQL SQL syntax beautifier
sudo apt install pgformatterpgformatter
nix profile install nixpkgs#pgformatterpgformatter 5.5-1
PostgreSQL SQL syntax beautifier
sudo apt install pgformatterpgformatter 5.10-1
A PostgreSQL SQL syntax beautifier
https://github.com/darold/pgformatter
sudo pacman -S pgformatterpgFormatter
sudo port install pgFormatter来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.