macOS
brew install libpqprovider-native install command
brew / rank 149
Postgres C API library. Version 18.4 via Homebrew; verified from local package data.
install
brew install libpqprovider-native install command
overview
Postgres C API library
history
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.
security posture
No matching local secret-handling manifest was found for libpq. Nucleus package metadata is still published here so future coverage has a stable package URL.
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.
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.confexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
clusterdb | executable | indexed executable | Discovered from the local executable index. |
createdb | executable | indexed executable | Discovered from the local executable index. |
createuser | executable | indexed executable | Discovered from the local executable index. |
dropdb | executable | indexed executable | Discovered from the local executable index. |
dropuser | executable | indexed executable | Discovered from the local executable index. |
ecpg | executable | indexed executable | Discovered from the local executable index. |
initdb | executable | indexed executable | Discovered from the local executable index. |
pg_amcheck | executable | indexed executable | Discovered from the local executable index. |
pg_archivecleanup | executable | indexed executable | Discovered from the local executable index. |
pg_basebackup | executable | indexed executable | Discovered from the local executable index. |
pg_checksums | executable | indexed executable | Discovered from the local executable index. |
pg_combinebackup | executable | indexed executable | Discovered from the local executable index. |
pg_config | executable | indexed executable | Discovered from the local executable index. |
pg_controldata | executable | indexed executable | Discovered from the local executable index. |
pg_createsubscriber | executable | indexed executable | Discovered from the local executable index. |
pg_ctl | executable | indexed executable | Discovered from the local executable index. |
pg_dump | executable | indexed executable | Discovered from the local executable index. |
pg_dumpall | executable | indexed executable | Discovered from the local executable index. |
pg_isready | executable | indexed executable | Discovered from the local executable index. |
pg_receivewal | executable | indexed executable | Discovered from the local executable index. |
pg_recvlogical | executable | indexed executable | Discovered from the local executable index. |
pg_resetwal | executable | indexed executable | Discovered from the local executable index. |
pg_restore | executable | indexed executable | Discovered from the local executable index. |
pg_rewind | executable | indexed executable | Discovered from the local executable index. |
pg_test_fsync | executable | indexed executable | Discovered from the local executable index. |
pg_test_timing | executable | indexed executable | Discovered from the local executable index. |
pg_upgrade | executable | indexed executable | Discovered from the local executable index. |
pg_verifybackup | executable | indexed executable | Discovered from the local executable index. |
pg_waldump | executable | indexed executable | Discovered from the local executable index. |
pg_walsummary | executable | indexed executable | Discovered from the local executable index. |
pgbench | executable | indexed executable | Discovered from the local executable index. |
psql | executable | indexed executable | Discovered from the local executable index. |
reindexdb | executable | indexed executable | Discovered from the local executable index. |
vacuumdb | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:libpq |
|---|---|
| Version | 18.4 |
| Package manager | Homebrew |
| Homepage | https://www.postgresql.org/docs/current/libpq.html |
| Bottle | not recorded |
| Service | none declared |
source 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.