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

Feature Request: Multiple hosts in connection string with auto-switching #76

Open
ghost opened this issue Apr 30, 2020 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Apr 30, 2020

First of all thanks for great lib, pretty stable and fast!

There is already an issue opened here brianc/node-postgres#1470 (comment)

would it be a duplicate?

Anyway, HA comes to masses nowadays and middleware(pgpool, pbbouncer, haproxy) renders redundant starting with PosgreSQL v10 where libpq can switch between hosts.

And the "rude" question itself - any plans to implement this for node-libpq? :)

Seems it already supports multiple hosts, but getting error when providing the key param:
?target_session_attrs=read-write

[Error: invalid URI query parameter: "target_session_attrs"

with connection string:

postgresql://[email protected],192.168.4.4:5432/database?target_session_attrs=read-write
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

No branches or pull requests

0 participants