libpq
libpq is the C client application programming interface for PostgreSQL. It is distributed as part of the PostgreSQL project and provides the primary means for applications to connect to PostgreSQL servers, issue SQL commands, and obtain query results.
Key capabilities include connection management (establishing and maintaining a database session, with statuses accessible via PQstatus),
Query execution and results are handled through high-level functions like PQexec, PQexecParams, and PQprepare for prepared
libpq provides data transfer features for large objects and the COPY protocol, including functions for COPY
Security and platform support: libpq supports SSL/TLS, GSSAPI/SSPI authentication, Kerberos, and certificate verification. It runs on
License and ecosystem: libpq is released under the PostgreSQL License, a liberal open-source license. It is