Skip to content

Add support for specifying multiple host addresses when connecting #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2018

Conversation

elprans
Copy link
Member

@elprans elprans commented Sep 19, 2018

The behavior matches that of libpq. Multiple hosts can now be specified
in the DSN, e.g. postgres://host1,host2:5433. The host and port
arguments now also accept lists. Like libpq, asyncpg will select the
first host it can successfully connect to.

Closes: #257
Related: #352

@elprans elprans requested a review from 1st1 September 19, 2018 16:54
The behavior matches that of libpq.  Multiple hosts can now be specified
in the DSN, e.g. `postgres://host1,host2:5433`.  The `host` and `port`
arguments now also accept lists.  Like libpq, asyncpg will select the
first host it can successfully connect to.

Closes: #257
Related: #352
@elprans
Copy link
Member Author

elprans commented Oct 30, 2018

@1st1 Please review

@elprans elprans merged commit 1d650ed into master Oct 30, 2018
@elprans elprans deleted the multiple-hosts branch October 30, 2018 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants