fix(instance,scaleup): avoid using snapshots if they could be of an older majorVersion by armru · Pull Request #8475 · cloudnative-pg/cloudnative-pg

@dosubot dosubot bot added the size:XL

This PR changes 500-999 lines, ignoring generated files.

label

Aug 29, 2025

@dosubot dosubot bot added size:L

This PR changes 100-499 lines, ignoring generated files.

and removed size:XL

This PR changes 500-999 lines, ignoring generated files.

labels

Aug 29, 2025

@armru armru changed the base branch from main to dev/backup-add-major

August 29, 2025 10:42

@dosubot dosubot bot added size:XXL

This PR changes 1000+ lines, ignoring generated files.

and removed size:L

This PR changes 100-499 lines, ignoring generated files.

labels

Aug 29, 2025

@dosubot dosubot bot added size:L

This PR changes 100-499 lines, ignoring generated files.

and removed size:XXL

This PR changes 1000+ lines, ignoring generated files.

labels

Aug 29, 2025

@armru armru changed the title wip: do not use snapshot of older major verison fix(instance,scaleup): avoid using snapshots if they could be of an older majorVersion

Aug 29, 2025

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Sep 9, 2025

Base automatically changed from dev/backup-add-major to main

September 12, 2025 11:44

gbartolini

…lder majorVersion

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>

wip

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>

test: add tests

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>

cnpg-bot pushed a commit that referenced this pull request

Sep 12, 2025
… upgrades (#8475)

Avoids a bug where volume snapshot backups from a previous minor version
could be incorrectly reused when scaling up, leading to issues during
major PostgreSQL upgrades.

Depends On #8464
Closes #7705

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 62c6bd0)

mnencia added a commit that referenced this pull request

Sep 12, 2025
… upgrades (#8475)

Avoids a bug where volume snapshot backups from a previous minor version
could be incorrectly reused when scaling up, leading to issues during
major PostgreSQL upgrades.

Depends On #8464
Closes #7705

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 62c6bd0)

rossigee pushed a commit to rossigee/cloudnative-pg that referenced this pull request

Oct 2, 2025
… upgrades (cloudnative-pg#8475)

Avoids a bug where volume snapshot backups from a previous minor version
could be incorrectly reused when scaling up, leading to issues during
major PostgreSQL upgrades.

Depends On cloudnative-pg#8464  
Closes cloudnative-pg#7705

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>

THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request

Oct 30, 2025
… upgrades (cloudnative-pg#8475)

Avoids a bug where volume snapshot backups from a previous minor version
could be incorrectly reused when scaling up, leading to issues during
major PostgreSQL upgrades.

Depends On cloudnative-pg#8464
Closes cloudnative-pg#7705

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>