Skip to content

K8SPG-1051 add upgrade image for pg19 - #1389

Merged
hors merged 1 commit into
mainfrom
K8SPG-1051_fix
Aug 24, 2026
Merged

K8SPG-1051 add upgrade image for pg19#1389
hors merged 1 commit into
mainfrom
K8SPG-1051_fix

Conversation

@nmarukovich

@nmarukovich nmarukovich commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Due to the high volume of requests, we're unable to provide free service for this account. To continue using the service, please upgarde to a paid plan.

Problem:
There is no image to run pg_upgrade for 18 -> 19. The existing upgrade image only has PostgreSQL up to 18, and pg_upgrade needs both old and new binaries in one container. Also our pg19 builds were not pinned to a beta, so a rebuild silently jumped from beta2 to beta3. beta3 changed the WAL format, pgBackRest 2.59.0 stopped accepting WAL — no archiving, no backups.

Solution:
New upgrade19 image with 18 and 19 binaries. Pin the build to beta3 with a build arg, so switching to the next beta is an explicit change. Update pgBackRest to 2.59.1, which supports beta3 WAL.

@nmarukovich
nmarukovich requested a lite review from Copilot August 20, 2026 15:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a PostgreSQL 19 (beta) upgrade image to support pg_upgrade from PostgreSQL 18 → 19, while also pinning the PG19 build to a specific beta and aligning pgBackRest to a version compatible with that beta’s WAL format.

Changes:

  • Introduces a new upgrade19 container image that contains both PostgreSQL 18 and 19 binaries (plus required preloadable extensions like pgAudit).
  • Pins PostgreSQL 19 packages to beta3 via build args to avoid silent beta drift.
  • Updates pgBackRest builds for PG19 to 2.59.1 to support the beta3 WAL format.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
postgresql-containers/community/Makefile Adds upgrade19 target and includes it in the PG19 build/list-image groups.
postgresql-containers/community/build/upgrade19/Dockerfile New upgrade image with PG18 + PG19 binaries and pgAudit built for PG19 beta.
postgresql-containers/community/build/postgres19/Dockerfile Pins PG19 beta package selection and bumps pgBackRest build to 2.59.1.
postgresql-containers/community/build/pgbackrest19/Dockerfile Bumps pgBackRest build to 2.59.1 for PG19 beta compatibility.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 58 to 60
# The PGDG pgbackrest rpm does not support PostgreSQL 19 yet — build
# pgBackRest 2.59.0 (first release with PG 19 support) from the official dist
# tarball and overlay the binary. Drop this stage once the PGDG rpm catches up.
@hors
hors merged commit e3f728a into main Aug 24, 2026
24 of 25 checks passed
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