Implementation of pg_pconnect and connection pools.