libpq
« Back to VersTracker
Description:
Postgres C API library
Type: Formula  |  Latest Version: 18.1@0  |  Tracked Since: Nov 13, 2025
Links: Homepage  |  formulae.brew.sh
Category: Databases
Tags: postgresql database c-library sql client
Install: brew install libpq
About:
libpq is the official C language client library for PostgreSQL. It provides a comprehensive API for establishing connections, executing SQL queries, and handling asynchronous operations. This library is essential for developers building high-performance applications that need direct, low-level access to PostgreSQL databases.
Key Features:
  • Native C API for PostgreSQL
  • Supports asynchronous connection and query handling
  • SSL/TLS encryption for secure database connections
  • Flexible connection pooling and management
Use Cases:
  • Building C/C++ applications that interface with PostgreSQL
  • Developing custom database drivers or ORMs
  • Creating high-performance data ingestion pipelines
Alternatives:
  • libpqxx – A modern C++ wrapper for libpq that provides an object-oriented interface.
  • ODBC – A standardized API for accessing various databases, often used for multi-database applications.
Version History
Detected Version Rev Change Commit
Nov 13, 2025 8:33pm 0 VERSION_BUMP b8d1482c
Sep 26, 2025 1:53am 0 VERSION_BUMP 741eae50
Nov 14, 2024 10:17pm 0 VERSION_BUMP 5cde4761
Oct 31, 2024 3:09am 2 VERSION_BUMP bc558893
Sep 30, 2024 2:11pm 0 VERSION_BUMP 00e570bd