macOS
brew install libpqlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libpq pour les workflows d'agents IA.
installation
brew install libpqlocal Homebrew formula metadata
sudo apk add libpqAlpine Linux edge package indexes · libpq · Source: dl-cdn.alpinelinux.org
sudo dnf install libpqFedora Rawhide package metadata · libpq · Source: dl.fedoraproject.org
sudo apt install pg-checksums-docDebian stable package indexes · pg-checksums-doc · Source: deb.debian.org
nix profile install nixpkgs#pg_checksumsnixpkgs package indexes · pkgs/by-name/pg/pg_checksums/package.nix · Source: api.github.com
aperçu
Postgres C API library
historique
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.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour libpq. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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.
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.confexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
clusterdb | cli | exécutable global | |
createdb | cli | exécutable global | |
createuser | cli | exécutable global | |
dropdb | cli | exécutable global | |
dropuser | cli | exécutable global | |
ecpg | cli | exécutable global | |
initdb | cli | exécutable global | |
pg_amcheck | cli | exécutable global | |
pg_archivecleanup | cli | exécutable global | |
pg_basebackup | cli | exécutable global | |
pg_checksums | cli | exécutable global | |
pg_combinebackup | cli | exécutable global | |
pg_config | cli | exécutable global | |
pg_controldata | cli | exécutable global | |
pg_createsubscriber | cli | exécutable global | |
pg_ctl | cli | exécutable global | |
pg_dump | cli | exécutable global | |
pg_dumpall | cli | exécutable global | |
pg_isready | cli | exécutable global | |
pg_receivewal | cli | exécutable global | |
pg_recvlogical | cli | exécutable global | |
pg_resetwal | cli | exécutable global | |
pg_restore | cli | exécutable global | |
pg_rewind | cli | exécutable global | |
pg_test_fsync | cli | exécutable global | |
pg_test_timing | cli | exécutable global | |
pg_upgrade | cli | exécutable global | |
pg_verifybackup | cli | exécutable global | |
pg_waldump | cli | exécutable global | |
pg_walsummary | cli | exécutable global | |
pgbench | cli | exécutable global | |
psql | cli | exécutable global | |
reindexdb | cli | exécutable global | |
vacuumdb | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://www.postgresql.org/docs/current/libpq.html
métadonnées d'installation
| Clé du paquet | brew:libpq |
|---|---|
| Version | 18.4 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/libpq |
| Page d'accueil | https://www.postgresql.org/docs/current/libpq.html |
| Dépôt | https://git.postgresql.org/git/postgresql.git |
| Docs amont | https://www.postgresql.org/docs/current/libpq.html |
| Licence | PostgreSQL |
| Archive source | https://ftp.postgresql.org/pub/source/v18.4/postgresql-18.4.tar.bz2 |
| Dernière mise à jour | 2026-06-28T05:00:52Z |
| Pulse | updated |
| Dépendances | icu4c@78, krb5, openssl@3, readline |
| Dépendances de compilation | docbook, docbook-xsl, pkgconf |
| Bibliothèques fournies par macOS | curl |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-checksumspiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.