Skip to content

Support Major Version Upgrade of Postgres #42

@dougkirkley

Description

@dougkirkley

Currently If you do a Major version upgrade of Postgres, when the upgraded pods come back up pgBackrest fails to archive the WAL files due to the stanza version mismatch with the old and new version of Postgres.

{"level":"info","ts":"2025-11-05T00:24:13.860925294Z","logger":"archive-push","msg":"2025-11-05 00:24:13.860 P00  ERROR: [044]: WAL file '/var/lib/postgresql/data/pgdata/pg_wal/00000001000000000000008D' version 16, system-id 7569025189936418850 do not match stanza version 15, system-id 7568844977113780323","pipe":"stdout","logging_pod":"postgres-infra-1"}

I am not sure if there are any hooks we can use in the CNPG-I lifecycle to add in a post upgrade container that just runs stanza-upgrade or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions