jackc / pgconn

MIT License
178 stars 86 forks source link

Fix documentation saying only one IP from a hostname is used #104

Closed horgh closed 2 years ago

horgh commented 2 years ago

I noticed that the documentation says that only one IP will be used if a server is specified using a hostname. However, reading the code suggests that we resolve the host upon connect and try all of the IPs - as of #14 - using expandWithIPs(). Possibly I'm wrong, but I thought I'd send a quick PR because of this.

Thank you for the great project by the way!

jackc commented 2 years ago

I think you are correct. Thanks!