Planning a major PostgreSQL upgrade with CloudNativePG
A platform team running PostgreSQL 14 on Kubernetes with CloudNativePG should plan a major upgrade as a project with its own rehearsal, rollback and acceptance criteria, not as an image tag change. The supported path is to move one major version at a time through the versions the PostgreSQL project still supports, and CloudNativePG provides three methods to execute each step: an offline in-place upgrade with pg_upgrade, a blue/green dump and restore, or a blue/green cutover with native logical replication. PostgreSQL 14 is supported until November 12, 2026, so the planning window is already the decision that matters. Confirm that date against the PostgreSQL versioning policy before you set the calendar for your change window.
Major upgrades differ from minor updates because they change the on-disk storage format. A minor release only replaces executables and restarts the server, which is why minor patching can be routine. A major release requires converting or copying the data, and that conversion is where downtime, extension incompatibility and planner behavior changes come from. The PostgreSQL upgrading documentation describes the three underlying approaches, and CloudNativePG maps them onto Kubernetes objects. Your choice of method sets the downtime you accept, the rollback you can perform and how much extra storage and compute you run during the change, so it should be decided before the rehearsal starts.
Before you choose a method, inventory the things that a new image does not carry across for you: installed extensions and their matching builds for the target version, custom configuration in the Cluster resource, the operating system family of the current and target images, and any settings that the CloudNativePG upgrade notes call out for your exact minor version. Ask your operator team to confirm which CloudNativePG release documents the upgrade method you intend to use, and test the chosen path in a non-production cluster built from the same images. The decision you need to make first is whether your downtime budget allows an offline in-place upgrade or requires a blue/green cutover, because that choice determines the rest of the plan.
What changes in PostgreSQL 17 and 18 that affects the upgrade
This table lists the PostgreSQL 17 and 18 changes that affect a CloudNativePG major upgrade, with the impact of each and the action your team needs to take. Read it before choosing an upgrade method, because the operating system and slot settings can block an in-place upgrade outright.
| Change | Impact on the upgrade | Action for your team |
|---|---|---|
| pg_upgrade keeps planner statistics (PostgreSQL 18) | Planner statistics survive the major upgrade, so the database is less likely to run with poor plans immediately after cutover. | Confirm the statistics behavior in your test run, but still plan an ANALYZE if your release notes or tests show otherwise. |
| pg_upgrade parallel jobs and --swap (PostgreSQL 18) | Parallel jobs can shorten the data-copy step, and --swap changes how files move between old and new clusters. | Check whether the CloudNativePG in-place path exposes these options in your version, and record the rollback behavior before you rely on them. |
| Operating system distribution must match | CloudNativePG in-place major upgrades only work between images on the same operating system distribution. | Confirm the old and new image bases before scheduling. If the distribution changes, use a blue/green method instead. |
| max_slot_wal_keep_size on PostgreSQL 17.0 to 17.5 | Upgrades fail if max_slot_wal_keep_size is not -1 on these 17 minor releases. The fix is in 17.6 and 18. | Check the setting on every source cluster, set it to -1 where needed, and run the target on 17.6 or later or on 18. |
| Asynchronous I/O (PostgreSQL 18) | Changes how reads are issued, so I/O behavior and throughput can shift after the upgrade. | Benchmark workloads on the new version and decide whether to keep the default I/O method. |
| OAuth 2.0 authentication method (PostgreSQL 18) | Adds a new authentication option. Existing pg_hba.conf rules keep working but may need review for new clients. | Review pg_hba.conf after the upgrade and confirm which authentication methods each client uses. |
| uuidv7() function (PostgreSQL 18) | Adds a time-ordered UUID generator. Existing UUID columns and data are not converted. | Decide whether applications will switch generators, and confirm index and sorting expectations in tests. |
| Virtual generated columns by default (PostgreSQL 18) | Generated columns without a STORED keyword become virtual, which changes how their values are stored and read. | Review table definitions, and set STORED explicitly where stored values are required for indexes or reports. |
| MD5 password deprecated in favor of SCRAM (PostgreSQL 18) | MD5 authentication is deprecated, and deprecation warnings appear for MD5 roles. Clients that only support MD5 may fail to connect. | Inventory roles and client drivers, reset passwords with SCRAM-SHA-256, and update pg_hba.conf before cutover. |
How CloudNativePG offers three upgrade methods
CloudNativePG offers three ways to move a cluster to a new PostgreSQL major version, and each one leaves a different rollback position. The first is an offline in-place upgrade with pg_upgrade, triggered by declaring a newer major PostgreSQL image on the Cluster resource. The operator stops the instances, runs the upgrade on the existing data directory and restarts. Rollback means restoring the previous data directory from your backup or reverting to the old image, so treat the pre-upgrade backup as the real rollback point. The second and third methods are blue/green: a new cluster on the target version is built alongside the old one. The dump and restore variant is also offline, and the old cluster stays untouched until you switch traffic, so rollback is a matter of pointing applications back. The native logical replication variant is online and keeps writes flowing into the new cluster, with the cutover measured in seconds of downtime according to the PostgreSQL upgrading documentation. Its rollback depends on whether you replicate changes back to the old cluster after switchover, which you must plan for before cutover.
The in-place method is constrained by two settings you can check before you start. CloudNativePG only performs in-place major upgrades between images built on the same operating system distribution, so an upgrade that also changes the base OS must use a blue/green method. The second constraint concerns replication slots: PostgreSQL 17.0 through 17.5 fail to upgrade when max_slot_wal_keep_size is not set to -1, and this was fixed in 17.6 and in 18. Confirm the image tags, the operating system of each image and the value of this setting in your cluster configuration, and record the results in your change plan.
Choose the method by the downtime your services can tolerate and by how much rollback you need. Confirm the exact operator and image versions against the CloudNativePG upgrade documentation for your release, because the supported paths and the mechanics of each method are documented there and may change between releases. Ask your team to rehearse the chosen method in a non-production copy of the cluster before the production window.
What to prepare before touching the cluster
A CloudNativePG major upgrade changes the data format and the image that runs it, so most of the risk is settled before the upgrade request. The cards below cover the recovery path, the software that must match the new version, a rehearsal environment, two PostgreSQL settings that can block the upgrade, and the Kubernetes versions the cluster runs on.
Verified backups and recovery
Confirm that a recent base backup and archived WAL files exist and that you have restored them to a separate environment. Point-in-time recovery is your rollback path if the upgrade or the cutover goes wrong, so a backup that has never been restored does not count. Record the restore time you measured, and keep a copy of the pre-upgrade cluster definition so you can recreate the old version.
Continuous archiving docsExtension and customization inventory
List every extension, shared library and custom configuration the cluster loads, and confirm that each one has a build for the target PostgreSQL major version inside the image you plan to use. An extension missing from the new image can stop the cluster from starting or leave tables unreadable through a failed library load. Ask the extension maintainer for the target version and check it against your image before scheduling.
Production-like test cluster
Build a test cluster from the same manifests, storage class, operator version and PostgreSQL image family as production, then load a recent copy of the data. Run the upgrade there first and time it, then run application tests against the result. Differences in storage size, network policy or resource limits often surface only at this step, so treat a loosely matched test cluster as a weak signal.
Replication slots and max_slot_wal_keep_size
Check max_slot_wal_keep_size and list all replication slots, including those used by logical replication or by external consumers. CloudNativePG documents that PostgreSQL 17.0 to 17.5 fail to upgrade in place if this setting is not -1, and the fix arrived in 17.6 and 18. Plan to confirm the value on the source image and the image you are upgrading to, and remove or advance any slot you no longer need.
Password method review for SCRAM
Find every role that still stores an MD5 password hash and every pg_hba rule that still uses the MD5 method, including those in application secrets and in the operator's managed roles. PostgreSQL 18 deprecates MD5 in favor of SCRAM, so clients that cannot negotiate SCRAM will fail after the upgrade. Test each application driver against a SCRAM-only role before the cutover window.
Kubernetes version support and skew
Confirm the Kubernetes minor version your cluster runs is still patched and that the target version is supported by your operator release. The version skew policy requires the control plane to be upgraded one minor version at a time before the kubelets, and kubelets may be up to three minor versions behind the API server. Schedule any cluster upgrade as its own change so the database upgrade is not tested on a moving platform.
Version skew policyChoosing between in-place and blue/green by downtime budget
The in-place method runs an offline upgrade with pg_upgrade, triggered by requesting a newer major PostgreSQL image on the cluster. It keeps one cluster and one set of volumes, so the operational footprint stays small, but the database is unavailable for the full duration of the conversion. Downtime grows with the amount of data that pg_upgrade must process, and the window needs to be measured in a rehearsal on a copy of production data rather than estimated.
- Downtime: the whole conversion is offline, so the budget must cover the longest expected run plus validation.
- Operating system match: in-place upgrades only work between images on the same operating system distribution, so a change of base image family rules this method out.
- Known PostgreSQL 17 issue: versions 17.0 to 17.5 fail to upgrade if max_slot_wal_keep_size is not -1, which is fixed in 17.6 and 18.
- Rollback: the original data is changed in place, so rollback means restoring from a verified backup, which must be proven before the upgrade starts.
- Effort: low hands-on effort on the day, with most of the work in rehearsal and backup validation.
Check the source and target image families, confirm your slot settings, and confirm the backup restore time against the downtime budget.
The dump and restore method builds a new cluster on the target major version, loads a logical dump into it, and then switches applications over. The original cluster stays intact during the build, which makes it a blue/green pattern, but writes made after the dump starts must be frozen or replayed, so the database is offline for the copy window. This method suits smaller databases, schema-heavy systems, or teams that want a clean target cluster with no carried-over on-disk state.
- Downtime: offline for the dump and restore duration, which grows with total data volume and index count.
- Clean target: the new cluster starts from a logical copy, which can help when years of accumulated bloat or configuration drift are a concern.
- Parallel capacity: two clusters run at once, so storage and compute must fit both for the duration of the migration.
- Rollback: the original cluster remains available until cutover is accepted, so rollback is a traffic switch back, but writes made on the new cluster after cutover must be considered.
- Effort: moderate, mainly around sequencing the write freeze, verifying counts, and reattaching applications and extensions.
Confirm the total data size, the acceptable write freeze, and how application writes will be stopped and verified.
The logical replication method creates a target cluster on the new major version, replicates changes from the source while both run, and performs a short cutover once the target is in sync. Because replication works between different major versions, downtime is limited to the cutover itself, which the PostgreSQL documentation describes as several seconds for major upgrades. The price is more moving parts: publications, subscriptions, sequences, and schema changes must be managed during the overlap.
- Downtime: limited to the cutover window, provided the replication lag is low and sequences are synchronized.
- Prerequisites: source tables need replica identity, sequences and DDL changes need a plan, and extensions must exist on the target.
- Overlap effort: the team must monitor replication lag, conflicts and schema drift for as long as the overlap lasts.
- Rollback: the source cluster stays in sync until cutover, which allows reverse replication planning, but reverse flow must be designed and tested before it is relied on.
- Effort: highest of the three, with planning, testing and monitoring work spread over the overlap period.
Confirm whether your workload can tolerate the cutover pause, the schema change rate during the overlap, and whether reverse replication is required.
No single method is correct for every environment, so the choice follows from the downtime budget, the data volume, the operating system images in use and the rollback position the business accepts. DeployOpen does not select a method before these inputs are known. The written scope records the chosen method, the measured rehearsal results, the cutover window and the rollback criteria.
- Inputs needed: the maximum acceptable outage, total data size, largest tables, and daily write volume.
- Rehearsal: each candidate method should be timed on a recent copy of production data.
- Constraints: operating system family, slot settings, extensions and client connection behavior.
- Rollback criteria: agreed conditions under which the team returns to the source cluster, and the time limit for that decision.
- Sign-off: named owners for the cutover decision, the go/no-go checks and post-upgrade validation.
Before committing, ask for a rehearsal timing and a written rollback plan tied to your numbers.
The upgrade sequence with checks and rollback points
This sequence moves a PostgreSQL major version to a new version on CloudNativePG in an order where each gate must pass before the next step starts, and an old cluster stays available for rollback until the new one is accepted.
Inventory versions, extensions and images
The platform owner lists the current PostgreSQL major version, the operator and Kubernetes versions, the operating system image family, every installed extension and the settings that affect upgrades, such as max_slot_wal_keep_size. The team confirms that the target image uses the same operating system distribution as the source, because in-place upgrades only work between images on the same distribution. The step closes with a written inventory that the database owner signs off. Rollback point: nothing has changed yet, so the cluster is untouched.
Verify backups and restore before changing anything
The team confirms that continuous backups and WAL archiving are running and that a recent backup can be restored to a separate namespace. Someone who did not configure the backups performs the restore and runs row counts and application smoke queries against the copy. The step is done when the restored copy passes those checks and the restore time is recorded. Rollback point: the verified backup is the fallback if a later step corrupts data.
Rehearse the upgrade in a test cluster
The team builds a copy of the production cluster in a separate namespace from a recent backup and runs the chosen upgrade method against it with the exact target image and configuration. They run the application test suite, check extension behavior, and record how long the operation takes and what manual steps were needed. The rehearsal gates the production change: if extensions fail or the procedure needs undocumented steps, the team fixes the runbook and repeats the rehearsal. Rollback point: the production cluster is still running the old version.
Choose the method and freeze the change window
Based on the rehearsal results, the team selects in-place pg_upgrade, dump and restore, or native logical replication, and documents why. The chosen method determines whether the old cluster stays running as a rollback target. The team freezes schema changes and deployments for the window and confirms who can approve a rollback. Rollback point: under the blue/green methods, the source cluster remains intact until cutover is accepted.
Execute the upgrade with recorded checkpoints
The operator performs the chosen method, either by requesting the newer major image for an in-place upgrade or by bringing up the new cluster and moving data across. The on-call engineer watches pod status, logs and replication lag, and records the time of each checkpoint. The step closes when the new primary accepts connections and the operator reports the cluster healthy. Rollback point: for in-place upgrades, the restore from the verified backup is the main fallback, so the team should decide beforehand how long they will wait before using it.
Validate extensions, statistics and authentication
The team confirms that each extension loads at the expected version, that planner statistics are present or that ANALYZE has been run, and that clients authenticate with the methods the security policy allows. They check that password hashes and connection settings still match the target configuration and run the application's read and write smoke tests. The step is complete when every check is recorded as passed in the change record. Rollback point: the old cluster remains available for rollback if the blue/green method was used, and the backup remains available for in-place upgrades.
Retire the old cluster after acceptance
After a defined acceptance period agreed in advance, the team removes the old cluster, its replication slots and its temporary storage, and updates backup schedules and monitoring to point at the new cluster. The owner confirms that the new backup completes and a restore test passes on the new version. The step ends with the change record closed and the old resources deleted. Rollback point: none remains once the old cluster is removed, so this step waits until acceptance checks have passed.
How blue/green and in-place paths differ in the cluster
The decision starts with a same-OS check: in-place pg_upgrade is only available when the target image shares the current operating system distribution. If it does not, the team moves to a new cluster built beside the old one, fed either by a dump and restore (offline) or by native logical replication (online). Both branches end at a cutover point and a rollback point, which the team should define before the first rehearsal. Check that each branch has a tested way back to the original cluster.
Decision path for choosing an in-place or blue/green major upgrade in CloudNativePG.
What the Kubernetes layer adds to the upgrade
The CloudNativePG upgrade runs on a Kubernetes cluster that must itself stay within a supported window, so the cluster version is part of the upgrade plan, not a separate concern. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets, and it allows kubelets to be up to three minor versions older than kube-apiserver. Check the current minors on the Kubernetes releases page before scheduling work, because the end-of-life dates of the three supported minors set how long you have to move. Confirm with your platform team which distribution and minor version the cluster runs, and whether its node pools can be replaced or drained in the window you have chosen.
Take an etcd backup before any control plane change, including the Kubernetes upgrade that may happen alongside a PostgreSQL upgrade. The etcd documentation recommends taking snapshots with etcdctl snapshot save and restoring with etcdutl, and it expects a backup plan to exist before work begins. Confirm that the snapshot is stored off the control plane nodes, that someone has restored one in a test environment, and that the restore covers the custom resources that define your PostgreSQL clusters. A backup that has never been restored tells you little about whether the cluster can be recovered.
Secrets handling determines how safely the database credentials used by the upgrade are stored. Kubernetes Secrets are stored unencrypted in etcd by default, so the superuser and application passwords that CloudNativePG reads must be protected by encryption at rest and by least-privilege RBAC that restricts list and watch access to the namespace. Review who can read Secrets in the PostgreSQL namespace, and decide whether an external store through the Secrets Store CSI Driver is required by your policy. Rotate any credential that a broad role could read before the upgrade, so the cutover does not carry exposure forward into the new cluster.
Failure points that stall or reverse an upgrade
Most stalled or reversed CloudNativePG major upgrades trace back to a few checks that were skipped before the window opened. The cards below cover the version-specific bug, image compatibility, extensions, authentication, backups and replication lag, which are the points to test in a rehearsal before any production cutover.
PostgreSQL 17.0 to 17.5 slot setting
On PostgreSQL 17.0 through 17.5, an in-place upgrade fails if max_slot_wal_keep_size is not set to -1. The fix arrived in 17.6 and 18, so a cluster on an affected 17 minor version needs its image or setting checked before the upgrade is requested. Confirm the current minor version and this parameter in the cluster spec during the rehearsal, and treat a failed in-place attempt as a reason to stop and review rather than retry blindly.
Image operating system mismatch
CloudNativePG in-place major upgrades only work between images on the same operating system distribution. If the target image is built on a different base, the operator cannot run pg_upgrade against the existing data directory, and the upgrade stalls at the image change. Check the base distribution of both the current and target images before scheduling, and plan a blue/green method instead if the distributions differ.
Extensions without matching builds
The new major version needs extension shared objects built for that exact PostgreSQL release. If the target image lacks a matching build of an extension the application relies on, the cluster may start without it or fail during restore. List every installed extension, confirm each has a build for the target major version in the image you will run, and test queries that depend on them in the rehearsal cluster.
Authentication failing after MD5 deprecation
PostgreSQL 18 deprecates MD5 password authentication in favor of SCRAM. Applications or roles that still store MD5 hashes, or client drivers that do not support SCRAM, can fail to connect right after the cutover, which looks like an outage to users. Inventory roles with MD5 hashes, confirm password_encryption and pg_hba rules in the target image, and verify each application driver logs in against the new cluster before the switch.
Authentication methods docsIncomplete backups found during rollback
A rollback plan depends on a restorable copy of the pre-upgrade cluster. Backups that were never restored in a test, or that omit WAL archives or the object storage configuration, may not reconstruct the cluster when they are needed. Before the window, take a fresh backup of the source cluster, restore it into a separate namespace, and confirm the data matches. Record the restore time so the rollback decision has a real basis.
Continuous archiving docsUnmeasured logical replication lag at cutover
The blue/green logical replication path keeps downtime short only if the subscriber has caught up when writes stop. Replication lag that was never measured under production write load can push the cutover past the planned window, and sequences or unreplicated objects can leave the new cluster out of step. Measure lag at peak write periods during the rehearsal, confirm sequence handling and schema changes are covered, and define the lag threshold that allows the switch.
What makes a CloudNativePG major upgrade take longer
This table lists the factors that stretch a CloudNativePG major upgrade and how each one changes the work. Read each row against your own clusters, since the effect of a single driver depends on which upgrade method you choose and how many environments you must move together.
| Driver | Effect on effort | What to check |
|---|---|---|
| Database size and dump time | Dump and restore scales with data volume and index count, so offline blue/green runs take longer as the database grows | Measure total size per cluster and time a test dump and restore on production-like hardware |
| Number of databases and extensions | Each database needs its own dump or logical publication, and each extension needs a build or version match for the target image | Inventory every database, extension and version, and confirm the target PostgreSQL 17 or 18 images ship them |
| Custom image builds | Custom images must be rebuilt on the new base and tested, and in-place upgrades require the same operating system distribution | Confirm the target image's OS distribution matches the source and who owns the rebuild pipeline |
| Replication slot configuration | Slot settings can block or fail an in-place upgrade, including the max_slot_wal_keep_size issue in PostgreSQL 17.0 to 17.5 | Check max_slot_wal_keep_size and list logical slots, then confirm the PostgreSQL 17 patch level in use |
| Number of clusters and environments | Each cluster and each environment (test, staging, production) repeats the rehearsal, cutover and rollback steps | Count clusters per environment and decide whether they share a runbook or need separate change windows |
| Kubernetes control plane maintenance | Cluster upgrades and operator upgrades can overlap with the database change, and both need compatible versions | Confirm the Kubernetes version and maintenance schedule, and align operator and PostgreSQL version support |
| Size of the test rehearsal | A thin rehearsal leaves surprises for production, while a full rehearsal adds scheduled environment time | Define the rehearsal scope, including data volume, applications, extensions and rollback, before setting the window |
Questions buyers ask before upgrading PostgreSQL on Kubernetes
How much does a major PostgreSQL upgrade on Kubernetes cost?
The cost depends on the written scope, not on a list price, and DeployOpen does not publish one. The main components are the discovery work on your current cluster, the choice of upgrade method, the number of clusters and databases in scope, the extensions and applications that must keep working, and the rehearsals you want before cutover. Ongoing retainers for upgrades and support are priced separately. Ask for a quote that lists each component, states what is one-time and what recurs, and names the environments that will be tested before production.
How long does a CloudNativePG major upgrade take?
Duration follows from the upgrade method, the database size and the number of environments you need to rehearse. An in-place pg_upgrade run is offline, so the outage window depends on how long the upgrade step takes on your data and whether you use a copy or link mode. Logical replication in a blue/green setup can keep the cutover to a short switch, but the replication setup and validation take longer before that point. Ask for the timeline in writing, with the rehearsal count and the change window you must provide.
Can our platform team run a CloudNativePG major upgrade without outside help?
Yes, a team with Kubernetes and PostgreSQL operations experience can perform the upgrade, because CloudNativePG declares the upgrade through the cluster resource and the PostgreSQL project documents the underlying methods. The harder parts are the decisions: which method fits your downtime budget, how extensions and password hashing are handled, and how rollback is prepared. Confirm internally whether those skills exist on the team and who owns the cutover decision. A partner is most useful when the team lacks rehearsal time or has not run a major upgrade before.
What does the work require from our own staff?
Expect to supply access to the Kubernetes clusters, the CloudNativePG operator version in use, the cluster manifests, backup repositories and a named approver for the change window. Application owners must confirm which queries, extensions and connection settings they rely on, and someone must run the acceptance checks against the upgraded database. Confirm the availability of these people before the scope is signed, because most schedule slips come from waiting on approvals, test data or change windows rather than from the upgrade itself.
Is an in-place major upgrade with pg_upgrade safe on our image?
It is safe only when the source and target images use the same operating system distribution, because CloudNativePG in-place major upgrades do not work across distributions. PostgreSQL 17.0 through 17.5 also fail to upgrade when max_slot_wal_keep_size is not set to -1, and that issue is fixed in 17.6 and 18. Check your current image, your operating system base and that setting before choosing this method. If any condition fails, plan the blue/green path through dump and restore or logical replication instead.
What does rollback look like after a CloudNativePG major upgrade?
Rollback depends on the method. An in-place pg_upgrade changes the data directory, so the practical rollback is restoring from a backup taken before the change, which is why a tested point-in-time recovery plan matters. A blue/green upgrade keeps the old cluster running, so rollback can mean switching applications back to it, but writes made to the new cluster must be considered. Agree on the rollback window, the backup verification steps and the decision point in writing before the change window opens.
Does our PostgreSQL upgrade need a security review or compliance evidence?
A major upgrade changes authentication defaults, so it is a good moment to review them. PostgreSQL 18 deprecates MD5 password authentication in favor of SCRAM, and client authentication rules in pg_hba.conf must match what applications support. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, and independent auditors make that determination. Ask the team to list which controls must be evidenced for the upgrade before the scope is agreed.
How DeployOpen scopes and delivers a CloudNativePG upgrade
DeployOpen starts every CloudNativePG major upgrade with a written scope that names the source and target PostgreSQL major versions, the upgrade method, the clusters and databases in scope, the extensions in use, and the rollback point the client accepts. The scope also records who owns the Kubernetes cluster, the image registry and the backup target, because those decide whether the upgrade can run inside the client's infrastructure without new external dependencies. Before quoting, DeployOpen reviews the current Cluster resources, the imageName values, max_slot_wal_keep_size settings and any logical replication slots, since these determine whether the chosen in-place or blue/green path is viable. The client should ask for the quote to list each of these inputs as an assumption, so a change in any of them is visible before work starts.
The rehearsal runs in a test environment inside the client's own infrastructure, built from a recent backup of production. DeployOpen runs the chosen method end to end there: for an in-place pg_upgrade, the requested newer major image and the operator's upgrade behavior; for blue/green, the dump and restore or the native logical replication cutover. Each run is timed and checked against the agreed downtime and data-integrity criteria, and the findings feed back into the runbook, including any extension rebuilds, pg_hba.conf changes and application connection string updates. The production window is then executed from that runbook, with a verified backup taken immediately beforehand and a named decision owner who can stop the cutover. After the upgrade, DeployOpen checks row counts, extension versions, replication status and application connectivity, and hands over the evidence. A retainer can then cover minor version updates, the next upgrade cycle and continuing backup tests, if the client wants that support.

