You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vitaly-t The widely-used package pg relies on this one, pg-connection-string. I think it would unwise for the author of this package to update the code to use connection-string, however robust that library may be, because presumably pg users are depending on the specific behavior of the parsing logic here. I suggest closing your issue.
Lots of packages depdend on this specific package. Updating the internsl to use connection-string would require a major version bump.
connection-string is compatible in the way strings are defined. Only the clients that do not follow URL Connection String spec would need an update. But a major version bump would be required, agreed.
Also, node-postgres still depends on v0.1.3 of this library.
In the meantime, everyone is required to include the library independently. Also, if you bump the major version, there will be no conflict.
I would be willing to do a PR for this, if there is any interest.
The change would require to leave behind certain proprietary things that do not comply with the URL Connection String Spec.
For example, for unix sockets, use proper .socket in the host name, and not socket://.
Example:
postgres://some-unix.address.socket/dbname
or, if the address requires use of /, then via a URL parameter:
postgres://?socket=first%2Fsecond%2Fthird.socket
This is necessary, and not just for the sake of a standard, but also to make progress toward supporting multiple hosts, in which you can have a combination of a regular host and a unix socket.
For the lack of the progress either way, to move toward a better generic approach, I no longer want to advocate any kind of integration. For people who want to use connection-string, they can just do so independently, and generate a connection object from it to be passed into the driver, as shown within the Adapters.
Activity
carnesen commentedon Mar 12, 2019
@vitaly-t The widely-used package
pgrelies on this one,pg-connection-string. I think it would unwise for the author of this package to update the code to useconnection-string, however robust that library may be, because presumablypgusers are depending on the specific behavior of the parsing logic here. I suggest closing your issue.vitaly-t commentedon Mar 12, 2019
@carnesen There are some open issues related to the use of the connection, so there is some wisdom in making the change:
hjr3 commentedon May 23, 2019
Lots of packages depdend on this specific package. Updating the internsl to use connection-string would require a major version bump.
Also, node-postgres still depends on v0.1.3 of this library.
vitaly-t commentedon May 24, 2019
connection-stringis compatible in the way strings are defined. Only the clients that do not follow URL Connection String spec would need an update. But a major version bump would be required, agreed.In the meantime, everyone is required to include the library independently. Also, if you bump the major version, there will be no conflict.
vitaly-t commentedon Jul 6, 2019
I would be willing to do a PR for this, if there is any interest.
The change would require to leave behind certain proprietary things that do not comply with the URL Connection String Spec.
For example, for unix sockets, use proper
.socketin the host name, and notsocket://.Example:
or, if the address requires use of
/, then via a URL parameter:This is necessary, and not just for the sake of a standard, but also to make progress toward supporting multiple hosts, in which you can have a combination of a regular host and a unix socket.
vitaly-t commentedon Jul 6, 2019
Biting the bullet on this one, here's the PR that implements it.
hjr3 commentedon Feb 1, 2020
#32 (comment)