Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit landing database with postgres #96

Open
alialkhalidi opened this issue Apr 8, 2022 · 0 comments
Open

implicit landing database with postgres #96

alialkhalidi opened this issue Apr 8, 2022 · 0 comments
Assignees

Comments

@alialkhalidi
Copy link

When configuring the database connection string, vct expects the following format:

postgres://USERNAME:PASSWORD@HOST:5432

which has an implicit assumption about the database name used to connect to the host; in this case it would be a database name matching the name of the username.

Even when specifying a (pre-created) database in the URI, vct treats connect the database as a prefix and fails:

 [vct] 2022/04/08 18:48:41 UTC - main.main -> CRITICAL failed to run vct: open store: failed to connect to database: failed to connect to `host=postgres user=vctdb database=newDB/vctdbconfig`: server error (FATAL: database "newDB/vctdbconfig" does not exist (SQLSTATE 3D000))

The suggestion is that since vct "at least" needs the config database, that would be the initial database it connects to, but does not create. yet it creates the "configured" log/alias-id database using the prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: TODO
Development

No branches or pull requests

2 participants