30.19. Building libpq Programs

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly.

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