30.20. Building libpq Programs

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

To build (i.e., compile and link) a program using libpq you need to do all of the following things: