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

Restore command cannot drop postgres database #31

Open
JAForbes opened this issue Apr 7, 2023 · 0 comments
Open

Restore command cannot drop postgres database #31

JAForbes opened this issue Apr 7, 2023 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@JAForbes
Copy link
Owner

JAForbes commented Apr 7, 2023

Because it connect to the cluster URL, postgres defaults to the default database, if the default database is also the users application database that they restore into then the command will fail.

Probably should just document we recommend/require having a non default db for restore, which is best practice anyway.

But we could also create some temp db, connect to that, drop postgres and restore it I suppose. But I think we should only go down that route if there's a need.

@JAForbes JAForbes added bug Something isn't working documentation Improvements or additions to documentation labels Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant