macOS
brew install libpqlocal Homebrew formula metadata
brew
libpq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install libpqlocal Homebrew formula metadata
sudo apk add libpqAlpine Linux edge package indexes · libpq · ソース: dl-cdn.alpinelinux.org
sudo dnf install libpqFedora Rawhide package metadata · libpq · ソース: dl.fedoraproject.org
sudo apt install pg-checksums-docDebian stable package indexes · pg-checksums-doc · ソース: deb.debian.org
nix profile install nixpkgs#pg_checksumsnixpkgs package indexes · pkgs/by-name/pg/pg_checksums/package.nix · ソース: api.github.com
概要
Postgres C API library
履歴
libpq is PostgreSQL's C client library: the small, stable-looking surface that lets C programs connect to PostgreSQL servers, submit queries, and read results. It also underlies several other PostgreSQL client interfaces, so packaging it separately gives developers the client headers, shared library, and familiar tools without requiring a Homebrew PostgreSQL server installation.
PostgreSQL descends from the Berkeley POSTGRES project, whose implementation began in 1986. The Postgres95 transition in 1994 replaced POSTQUEL with SQL and introduced `psql`; the PostgreSQL name arrived in 1996 to connect the POSTGRES heritage with SQL support.
The PostgreSQL manual notes that the `libpq` name came from PostQUEL. As PostgreSQL matured into a long-lived open source database, libpq became the canonical C API for client programs and a shared substrate for other language bindings and command-line clients.
libpq's adoption follows PostgreSQL's adoption: applications, drivers, migration tools, backup tools, and admin scripts need a PostgreSQL client layer even when the database server runs elsewhere. PostgreSQL's 2023 project announcement described the system as benefiting from more than 25 years of open source development and a global community of users, contributors, companies, and organizations.
Homebrew's `libpq` formula packages the client side as a keg-only formula. That matters on developer workstations because it avoids colliding with a full `postgresql` formula while still making `psql`, `pg_dump`, `pg_restore`, `pg_config`, and the C library available to builds and scripts.
Typical package-manager use is installing libpq so native extensions, database drivers, and command-line workflows can compile or run against PostgreSQL. Developers use `pg_config` to find build flags, `psql` for interactive sessions, and the dump/restore utilities for movement between PostgreSQL instances.
libpq is package-nerd significant because it is a dependency edge disguised as a database client. Many packages need PostgreSQL client headers and link libraries, but users often do not want a local database server; a separate formula keeps that dependency smaller and less invasive.
It also exposes PostgreSQL's major-version reality to package managers: client utilities can speak across versions, but dump, restore, upgrade, and extension-building workflows often care about exact major lines. That is why versioned formulae such as `libpq@16` and `libpq@17` are useful beside the unversioned formula.
セキュリティ状態
libpq に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
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.
psqlrc in the directory reported by pg_config --sysconfdir~/.psqlrcpg_service.conf in the directory reported by pg_config --sysconfdir~/.pg_service.conf%APPDATA%\postgresql\psqlrc.conf%APPDATA%\postgresql\.pg_service.confCredential-bearing paths to review before unattended agent runs.
~/.pgpass%APPDATA%\postgresql\pgpass.conf実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
clusterdb | cli | グローバル実行可能ファイル | |
createdb | cli | グローバル実行可能ファイル | |
createuser | cli | グローバル実行可能ファイル | |
dropdb | cli | グローバル実行可能ファイル | |
dropuser | cli | グローバル実行可能ファイル | |
ecpg | cli | グローバル実行可能ファイル | |
initdb | cli | グローバル実行可能ファイル | |
pg_amcheck | cli | グローバル実行可能ファイル | |
pg_archivecleanup | cli | グローバル実行可能ファイル | |
pg_basebackup | cli | グローバル実行可能ファイル | |
pg_checksums | cli | グローバル実行可能ファイル | |
pg_combinebackup | cli | グローバル実行可能ファイル | |
pg_config | cli | グローバル実行可能ファイル | |
pg_controldata | cli | グローバル実行可能ファイル | |
pg_createsubscriber | cli | グローバル実行可能ファイル | |
pg_ctl | cli | グローバル実行可能ファイル | |
pg_dump | cli | グローバル実行可能ファイル | |
pg_dumpall | cli | グローバル実行可能ファイル | |
pg_isready | cli | グローバル実行可能ファイル | |
pg_receivewal | cli | グローバル実行可能ファイル | |
pg_recvlogical | cli | グローバル実行可能ファイル | |
pg_resetwal | cli | グローバル実行可能ファイル | |
pg_restore | cli | グローバル実行可能ファイル | |
pg_rewind | cli | グローバル実行可能ファイル | |
pg_test_fsync | cli | グローバル実行可能ファイル | |
pg_test_timing | cli | グローバル実行可能ファイル | |
pg_upgrade | cli | グローバル実行可能ファイル | |
pg_verifybackup | cli | グローバル実行可能ファイル | |
pg_waldump | cli | グローバル実行可能ファイル | |
pg_walsummary | cli | グローバル実行可能ファイル | |
pgbench | cli | グローバル実行可能ファイル | |
psql | cli | グローバル実行可能ファイル | |
reindexdb | cli | グローバル実行可能ファイル | |
vacuumdb | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://www.postgresql.org/docs/current/libpq.html
インストールメタデータ
| パッケージキー | brew:libpq |
|---|---|
| バージョン | 18.4 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/libpq |
| ホームページ | https://www.postgresql.org/docs/current/libpq.html |
| リポジトリ | https://git.postgresql.org/git/postgresql.git |
| 上流ドキュメント | https://www.postgresql.org/docs/current/libpq.html |
| ライセンス | PostgreSQL |
| ソースアーカイブ | https://ftp.postgresql.org/pub/source/v18.4/postgresql-18.4.tar.bz2 |
| 最終更新 | 2026-06-28T05:00:52Z |
| Pulse | updated |
| 依存関係 | icu4c@78, krb5, openssl@3, readline |
| ビルド依存関係 | docbook, docbook-xsl, pkgconf |
| macOS 提供ライブラリ | curl |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libpq |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
libpq 18.4-r0
PostgreSQL client library
sudo apk add libpqlibpq 18.4-1.fc45
PostgreSQL client library
sudo dnf install libpqlibpq-devel 18.4-1.fc45
Development files for building PostgreSQL client tools
sudo dnf install libpq-develpg-checksums-doc 1.2-2
Activate/deactivate/verify PostgreSQL data checksums (Documentation)
https://github.com/credativ/pg_checksums
sudo apt install pg-checksums-docpostgresql-17-pg-checksums 1.2-2
Activate/deactivate/verify PostgreSQL data checksums
https://github.com/credativ/pg_checksums
sudo apt install postgresql-17-pg-checksumspg_checksums
nix profile install nixpkgs#pg_checksumspg-checksums-doc 1.1-6
Activate/deactivate/verify PostgreSQL data checksums (Documentation)
https://github.com/credativ/pg_checksums
sudo apt install pg-checksums-docpostgresql-16-pg-checksums 1.1-6
Activate/deactivate/verify PostgreSQL data checksums
https://github.com/credativ/pg_checksums
sudo apt install postgresql-16-pg-checksumsソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.