fix(backup,status): add `majorVersion` to backups by armru · Pull Request #8464 · cloudnative-pg/cloudnative-pg

@dosubot dosubot bot added the size:XL

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

label

Aug 28, 2025

@dosubot dosubot bot added size:M

This PR changes 30-99 lines, ignoring generated files.

github_actions

Pull requests that update GitHub Actions code

and removed size:XL

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

labels

Aug 28, 2025

@armru armru changed the title Dev/backup add major feat(bacup,status): add `MajorVersion

Aug 28, 2025

@armru armru changed the title feat(bacup,status): add `MajorVersion feat(backup,status): add `MajorVersion

Aug 28, 2025

@armru armru changed the title feat(backup,status): add `MajorVersion feat(backup,status): add MajorVersion

Aug 28, 2025

Base automatically changed from dev/backup-controller to main

August 29, 2025 08:52

@dosubot dosubot bot added size:XL

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

and removed size:M

This PR changes 30-99 lines, ignoring generated files.

labels

Aug 29, 2025

@dosubot dosubot bot added size:M

This PR changes 30-99 lines, ignoring generated files.

and removed size:XL

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

labels

Aug 29, 2025

@armru armru mentioned this pull request

Aug 29, 2025
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>

gbartolini

mnencia added a commit that referenced this pull request

Sep 12, 2025
Expose the PostgreSQL major version in the backup status and add a new
label `cnpg.io/majorVersion` to volume snapshots.

This change also fixes a bug during major upgrades, preventing backups
from being taken.

Partially closes #7705

---------

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
(cherry picked from commit de99f90)

mnencia added a commit that referenced this pull request

Sep 12, 2025
Expose the PostgreSQL major version in the backup status and add a new
label `cnpg.io/majorVersion` to volume snapshots.

This change also fixes a bug during major upgrades, preventing backups
from being taken.

Partially closes #7705

---------

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
(cherry picked from commit de99f90)

mnencia added a commit that referenced this pull request

Sep 12, 2025
Expose the PostgreSQL major version in the backup status and add a new
label `cnpg.io/majorVersion` to volume snapshots.

This change also fixes a bug during major upgrades, preventing backups
from being taken.

Partially closes #7705

---------

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
(cherry picked from commit de99f90)

gbartolini 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>

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
Expose the PostgreSQL major version in the backup status and add a new
label `cnpg.io/majorVersion` to volume snapshots.

This change also fixes a bug during major upgrades, preventing backups
from being taken.

Partially closes cloudnative-pg#7705

---------

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>

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
Expose the PostgreSQL major version in the backup status and add a new
label `cnpg.io/majorVersion` to volume snapshots.

This change also fixes a bug during major upgrades, preventing backups
from being taken.

Partially closes cloudnative-pg#7705

---------

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: theBrahma <office.utpal.brahma@gmail.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>