libpq@16

PostgreSQL client library and command-line tools for database connections

brewmacoslinux
Try with needOr install directly
Source

About

Postgres C API library

Commands

psqlpg_dumppg_restorepg_basebackuppg_config

Examples

Connect to a PostgreSQL database and run queries interactively$ psql -h localhost -U username -d database_name
Backup a PostgreSQL database to a file$ pg_dump -h localhost -U username -d database_name > backup.sql
Get PostgreSQL configuration and library information$ pg_config --version