Skip to content

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

@markiz

Description

@markiz

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.

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