Skip to content

PGUSER Env Variable used for Role creation but not used for DB access #258

Open
@mzabani

Description

@mzabani

It seems that if I run my tests with a default configuration and have the environment variable PGUSER unset, everything goes well.
However, if I have PGUSER set to postgres, for instance, I get a ConnectionTimedOut error.

By inspecting with netstat and manually connecting with psql while I wait for the timeout, it seems that the postgres user hasn't been created but is used by tmp-postgres when it tries to connect. Instead, my current user (mzabani in my case) is able to connect to the postgres DB but is not used by tmp-postgres when it tries to connect.

I'm not sure if this is actually a bug since I just started using tmp-postgres, so sorry if this is noise, and thanks for the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions