Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple-line pgpass file doesn't work #54

@pkaeding

Description

@pkaeding

If I have a .pgpass file with multiple lines, it seems only the first line is used.

I think this is due to the [0] in

pgpass = Hash[%i[hostname port database user password].zip(File.readlines(config[:pgpass])[0].strip.split(':'))]
(but I may be wrong there).

Given the postgres docs on the pgpass file format, I expected this to work the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions