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

Verify that the Postgres version is 17 or newer on incremental backups #942

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

bleidens
Copy link
Contributor

Performing an incremental backup using Postgres mode requires the Postgres server's version to be 17 or newer. This PR builds from the validation methods introduced by BAR-160 (validate_backup_args and _validate_incremental_backup_configs), adding a check for the Postgres server's version and issue an error if it's not compatible with incremental backups (<17).

References: BAR-163

@bleidens bleidens marked this pull request as ready for review June 20, 2024 13:05
@bleidens bleidens requested a review from a team as a code owner June 20, 2024 13:05
Copy link
Contributor

@barthisrael barthisrael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Let's squash the commits (code and black reformat)

@gcalacoci
Copy link
Contributor

gcalacoci commented Jun 20, 2024

Looks good. Let's squash the commits (code and black reformat)

I do agree. Rebase, squash and merge @bleidens

@barthisrael
Copy link
Contributor

@bleidens I can see you force pushed a few minutes ago, likely to add some changes from master.
We need to squash your commit with the "black reformat" commit.
Besides that, we need to update your tests/test_backup.py again, as I just merged another PR, which created a conflict here.

@bleidens
Copy link
Contributor Author

@barthisrael Yes, I just finished resolving the conflicts with the previous merge, I will now take a look at the new conflicts in tests/test_backup.py and squash everything after it's done, thanks for the update

Performing an incremental backup using Postgres mode requires the
Postgres server's version to be 17 or newer. This PR builds from
the validation methods introduced by BAR-160 (`validate_backup_args`
and `_validate_incremental_backup_configs`), adding a check for the
Postgres server's version and issue an error if it's not compatible
with incremental backups (<17).

References: BAR-163

Signed-off-by: Barbara Leidens <barbara.leidens@enterprisedb.com>
Copy link
Contributor

@gcalacoci gcalacoci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after rebase and squash looks good to me

@barthisrael barthisrael merged commit be88fe7 into master Jun 24, 2024
7 of 8 checks passed
@barthisrael barthisrael deleted the dev/bar-163 branch June 24, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants