libpq@17

PostgreSQL client library and utilities for C/C++ applications

brewmacoslinux
Try with needOr install directly
Source

About

Postgres C API library

Commands

psqlpg_dumppg_restorecreatedbdropdbcreateuserdropuserpg_config

Examples

Connect to a PostgreSQL database and run queries$ psql -h localhost -U postgres -d mydb -c 'SELECT * FROM users;'
Dump a database to a SQL file for backup$ pg_dump -h localhost -U postgres mydb > backup.sql
Get PostgreSQL library and header paths for compilation$ pg_config --libdir && pg_config --includedir