Skip to content
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

[Postgres] Support multiple hosts #179

Open
mehcode opened this issue Mar 30, 2020 · 2 comments
Open

[Postgres] Support multiple hosts #179

mehcode opened this issue Mar 30, 2020 · 2 comments
Labels
db:postgres Related to PostgreSQL enhancement New feature or request

Comments

@mehcode
Copy link
Member

mehcode commented Mar 30, 2020

Blocked by #174

It is possible to specify multiple hosts to connect to, so that they are tried in the given order.

postgresql://host1:123,host2:456/somedb
@mehcode mehcode added enhancement New feature or request db:postgres Related to PostgreSQL blocked labels Mar 30, 2020
@mehcode mehcode removed the blocked label Jun 10, 2020
@Razican
Copy link
Contributor

Razican commented Oct 12, 2022

Hello, how could I help to make this happen? Also, if one of the hosts goes down in the middle of the runtime, would the connection pool automatically try the second one until the first becomes available again?

@MTRNord
Copy link

MTRNord commented Sep 8, 2023

Hi any update on this? I tried also the syntax in https://www.postgresql.org/docs/current/libpq-connect.html but that results in a ParseIntError { kind: InvalidDigit })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
db:postgres Related to PostgreSQL enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants