Skip to content

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

@ghost

Description

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://user@192.168.4.2,192.168.4.4:5432/database?target_session_attrs=read-write

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions