Sample language c using libpq - PostgreSQL this sample show how to create an simple prog using c to querie the postgresql in localhost.