-
Notifications
You must be signed in to change notification settings - Fork 152
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
Use postgres DB while connecting to RDS during restore #2282
Conversation
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Thanks for submitting this pull request 🎉. The team will review it soon and get back to you. If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document. |
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.
LGTM
@@ -23,6 +23,8 @@ import ( | |||
_ "github.com/lib/pq" | |||
) | |||
|
|||
const DefaultConnectDatabase = "postgres" |
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.
const DefaultConnectDatabase = "postgres" | |
const defaultConnectDatabase = "postgres" |
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.
We need to export the const as it is being imported and used in another package.
Signed-off-by: Prasad Ghangal <prasad.ganghal@veeam.com>
Change Overview
During RDS restore, it needs a database to make the connection.
This PR removes overhead of listing all the DBs from the postgres to use one. Instead use default database ie postgres always during restore.
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan
Tested RDS backup restore using rds-postgres-dump-blueprint BP manually as well as by running the integration tests.