-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
blockerissue that must be resolved asap as it is preventing things from workingissue that must be resolved asap as it is preventing things from workingbugSomething isn't workingSomething isn't workingnear-term releaseaddition to the milestone which indicates this should be in a near-term releaseaddition to the milestone which indicates this should be in a near-term releasepostgresqluse casenot really a feature or a bug; can be support for new DB features or user use cases not anticipatednot really a feature or a bug; can be support for new DB features or user use cases not anticipated
Milestone
Description
PostgresSQL supports connecting with multiple hosts in connection string.
https://www.postgresql.org/docs/current/static/libpq-connect.html#libpq-multiple-hosts
The multiple hosts in connection string is like
postgresql+psycopg2://user:password@host1:port1,user:password@host2:port2/dbname
Unfortunately current SQLAlchemy behavior is parsing password@host1:port1,user:password
out as password to try connecting.
In fact both libpq and psycopg2(psycopg/psycopg2#602) support multi-host already. We might want to add more code to the engine/url.py to add this support in SQLAlchemy.
wronglink, Pavkazzz, vhaldemar, Spikhalskiy, SLRover and 6 more
Metadata
Metadata
Assignees
Labels
blockerissue that must be resolved asap as it is preventing things from workingissue that must be resolved asap as it is preventing things from workingbugSomething isn't workingSomething isn't workingnear-term releaseaddition to the milestone which indicates this should be in a near-term releaseaddition to the milestone which indicates this should be in a near-term releasepostgresqluse casenot really a feature or a bug; can be support for new DB features or user use cases not anticipatednot really a feature or a bug; can be support for new DB features or user use cases not anticipated