The C-API is the most powerful way to access PostgreSQL and it is surprisingly comfortable.
Compilation and linking
During compilation, you have to add the PostgreSQL include directory, which can be found with pg_config --includedir, to the include path.
You must link with the PostgreSQL client s...