Skip to content

EnsureDatabase.For.PostgresqlDatabase doesn't work if database account cannot access postgres database #20

Description

@reyasmohammed

Is there an existing issue for this?

  • I have searched the existing issues

Library Version

5.0.40

What happened?

When invoking this EnsureDatabase.For.PostgresqlDatabase(connectionString);, it fails.
Reason is the following line of code throws exception as the account we use doesn't have access to default postgres database.
masterConnectionStringBuilder.Database = "postgres";

As of now we had to comment this code to ensure that service is up & running.
This was identified when we migrated our instance to another environment where the database account have limited access.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions