Have you compared with other c++ libraries for postgresql? Such as,libpqxx (it has not connection pool)