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

postgres dropping connections from workers with "unterminated quoted string in connection info string" #18

Open
markiz opened this issue Sep 28, 2014 · 0 comments

Comments

@markiz
Copy link

markiz commented Sep 28, 2014

If you set process name to something containing \0 you will not be able to connect to postgres.
Easy to reproduce:

2.0.0-p247 :007 >   $0 = "foo bar\0"
 => "foo bar\u0000"
2.0.0-p247 :008 > require 'pg'; PGconn.connect(dbname: "postgres")
PG::ConnectionBad: unterminated quoted string in connection info string

https://github.com/kovyrin/loops/blob/master/lib/loops/worker.rb#L39 — here it is set.

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

1 participant