Skip to content

Add support for specifying multiple host addresses when connecting - #365

Merged
elprans merged 1 commit into
masterfrom
multiple-hosts
Oct 30, 2018
Merged

elprans merged 1 commit into
masterfrom
multiple-hosts

Conversation

@elprans

@elprans elprans commented Sep 19, 2018

Copy link
Copy Markdown
Member

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

elprans commented Oct 30, 2018

Copy link
Copy Markdown
Member Author

@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