-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
remote-state/pg: skip schema creation instruction if exists #21607
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good! Question: the current test that is added covers if the schema already exists and the setting is set to true -- what will happen (and should we have a test to cover?) if the schema does not exist and the setting is set to true?
hi @pselle thanks a lot for your review and inside this function, theres a call to t.Fatal(), which i cant "recover()" |
Hello, Any news on this PR? |
@mars, Just verifying if this looks OK for you too. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this improvement @yanndegat 🙌
I left a few suggestions that are not blockers but would be great to see accepted into the PR.
* add `skip_schema_creation` option * add sanity check to avoid situations where postgres users hasn't been granted the "CREATE SCHEMA" right closes hashicorp#21604 Signed-off-by: yann degat <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look, @mars , and for making the suggested updates @yanndegat !
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
skip_schema_creation
optionhasn't been granted the "CREATE SCHEMA" right
closes #21604
Signed-off-by: yann degat [email protected]