pkg.soopen package index

brew / 順位 2805

pgformatter を Homebrew, apt, Nix, pacman, MacPorts でインストール

pgformatter のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install pgformatter

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install pgFormatter

MacPorts ports tree · databases/pgFormatter/Portfile · ソース: api.github.com

Linux

Debian apt確認済み · 92%
sudo apt install pgformatter

Debian stable package indexes · pgformatter · ソース: deb.debian.org

Nix確認済み · 92%
nix profile install nixpkgs#pgformatter

nixpkgs package indexes · pkgs/by-name/pg/pgformatter/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S pgformatter

Arch Linux sync databases · pgformatter · ソース: geo.mirror.pkgbuild.com

概要

パッケージ概要

PostgreSQL syntax beautifier

コマンドとエイリアス

  • pg_format

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2012: Official source copyright begins for Gilles Darold's pgFormatter.
  • 2018: PostgreSQL community news recorded the pgFormatter 3.0 release.
  • 2020s: The project added broader PostgreSQL syntax support, XDG configuration discovery, and native pre-commit integration.

Related projects

  • The repository includes a native pre-commit hook that invokes `pg_format --inplace`, allowing formatting to run automatically in Git workflows.

ソース

  • Official CLI source and copyright: https://github.com/darold/pgFormatter/blob/master/lib/pgFormatter/CLI.pm
  • Official README: https://github.com/darold/pgFormatter#readme
  • Official hook definition: https://github.com/darold/pgFormatter/blob/master/.pre-commit-hooks.yaml
  • Package adoption: source_facts.package-manager

セキュリティ状態

保護ツール対応はまだ見つかっていません

pgformatter に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.pg_format~/.pg_format$XDG_CONFIG_HOME/pg_format/pg_format.conf
Windows
./.pg_format%USERPROFILE%\.pg_format

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
pg_formatcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-11-04
マネージャ版5.11
マネージャ更新日2026-09-13
ローカルデータOK
上流最新
検出された最新v5.11

https://github.com/darold/pgFormatter

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキー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
Pulseupdated
Bottle利用可能 (対象 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepgformatter
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

pgformatter 5.6-1

PostgreSQL SQL syntax beautifier

https://sqlformat.darold.net/

sudo apt install pgformatter
  • Section: database
  • Architecture: all
  • 1 依存関係
  • normalized package name match
  • 一致条件: Pgformatter
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pgformatter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

pgformatter

nix profile install nixpkgs#pgformatter
  • normalized package name match
  • 一致条件: Pgformatter
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pg/pgformatter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

pgformatter 5.5-1

PostgreSQL SQL syntax beautifier

https://sqlformat.darold.net/

sudo apt install pgformatter
  • Section: universe/database
  • Architecture: all
  • 1 依存関係
  • normalized package name match
  • 一致条件: Pgformatter
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pgformatter from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

pgformatter 5.10-1

A PostgreSQL SQL syntax beautifier

https://github.com/darold/pgformatter

sudo pacman -S pgformatter
  • License: PostgreSQL
  • Architecture: any
  • 1 依存関係
  • normalized package name match
  • 一致条件: Pgformatter
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: pgformatter from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

pgFormatter

sudo port install pgFormatter
  • normalized package name match
  • 一致条件: Pgformatter
MacPorts ports tree · api.github.com · MacPorts ports tree: databases/pgFormatter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation