<!-- Thank you for reporting an issue/feature request. If this is a feature request, please disregard this template. If this is a bug report, please answer to the questions below. It will be much easier for us to fix the issue if a test case that reproduces the problem is provided, with clear instructions on how to run it. Thank you! --> * **asyncpg version**: 0.18.3 * **PostgreSQL version**: 11.2 * **Do you use a PostgreSQL SaaS? If so, which? Can you reproduce the issue with a local PostgreSQL install?**: * **Python version**: 3.7.2 * **Platform**: ubuntu * **Do you use pgbouncer?**: * **Did you install asyncpg with pip?**: yes * **If you built asyncpg locally, which version of Cython did you use?**: * **Can the issue be reproduced under both asyncio and [uvloop](https://github.com/magicstack/uvloop)?**: <!-- Enter your issue details below this comment. --> It leads to different errors `socket.gaierror` such as `[Errno -2] Name or service not known` or `[Errno -3] Temporary failure in name resolution`