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
I'm trying to use this arg for the first time, and I end up getting a password failure. Is there another way I can provide this option? PG urls allow escaping special chars in the password, and this isn't working.
Actually, with a little experimentation, it really looks like PG::Connection.open is fully capable of parsing connection strings, without the URI.parse step. It appears that it handles both postgres:// URLs and connection strings like user=... password=... host=... dbname=....
So, AFAICT, the connection url option ought to be passed directly to PG::Connection.open.
I do see this, but I don't understand what it's for (I will check the docs):
My motivation for using this feature was adding pgBouncer. With the tiny patch above I've had no problems for the last couple of weeks.
This repo seems to be in fairly low-frequency maintenance mode, which is fine. If/when somebody gets a chance to look at this, let me know. The change I needed to get this working was trivial, and I would love to get this upstreamed, or have my issue addressed in another way.
I'm happy to PR this if you want, I haven't looked at how tests are set up but hopefully there's an easy way to set up a user with a password that would exercise this. I'll hold off for now in case it's not the desired approach.
Looks like here:
que/lib/que/locker.rb
Lines 147 to 156 in 17fb2c3
I'm trying to use this arg for the first time, and I end up getting a password failure. Is there another way I can provide this option? PG urls allow escaping special chars in the password, and this isn't working.
Actually, with a little experimentation, it really looks like
PG::Connection.open
is fully capable of parsing connection strings, without theURI.parse
step. It appears that it handles bothpostgres://
URLs and connection strings likeuser=... password=... host=... dbname=...
.So, AFAICT, the connection url option ought to be passed directly to
PG::Connection.open
.I do see this, but I don't understand what it's for (I will check the docs):
que/lib/que/locker.rb
Lines 189 to 194 in 17fb2c3
The text was updated successfully, but these errors were encountered: