Multithread compatible port of PostgreSQL libpq library.