See
Refer to "libpq - C Library" in "Client Interfaces" in the PostgreSQL Documentation for information on developing applications.
However, if you are using the C library, there are the following differences to the PostgreSQL C library (libpq).