Skip to content

Should not attempt to connect to postgres database in detached mode #653

@zx80

Description

@zx80

What action do you want to perform

Use postgresql in detached mode on a standard pg account and database:

createuser pytest  # with password "pytest"
createdb -O pytest pytest
pytest --postgresql-detached --postgresql-user=pytest --postgresql-password=pytest --postgreqsl-dbname=pytest ...

What are the results

The connection fails because it attempts to connect to the postgres database.
This is hardcoded here.

What are the expected results

It should use the provided dbname to get the version, and succeed.

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