What a PostgreSQL major version upgrade changes for your team
A team running self-hosted PostgreSQL on a major version that is near or past end of life has a data migration to plan before any package update. PostgreSQL 19 is the newest major, with a first release on November 19, 2026, and PostgreSQL 14 reached its final release on November 12, 2026, so 14 no longer receives fixes. Moving between majors needs one of three documented methods: dump and reload, pg_upgrade, or logical replication. Before you plan, confirm the current minor release of each major on the PostgreSQL versioning page, since the minor you target determines which fixes you receive. Consider outside help when the cluster is highly available, when many extensions must be rebuilt and retested for the new major, or when no staging environment exists to rehearse the cutover.
For the operations team, the change is in the work itself. A minor upgrade replaces executables and restarts the server, because minor releases never change the internal storage format. A major upgrade changes how data is stored, so the team must pick a method and settle the rollback path before the change window opens. Dump and reload with pg_dumpall is the simplest method to reason about, but its downtime grows with database size. pg_upgrade works on the existing data directory, and its link and clone options trade disk space and rollback options against speed, so test the option you pick in staging. Logical replication lets the old and new majors run side by side, and the upgrading documentation describes downtime of only several seconds, but schema changes, sequences and large objects need their own handling, so check the limits for your version.
Testing decides whether the window holds. Start with an inventory of every extension and confirm that each has a build for the target major before anyone schedules work. Then run the application's critical queries against the new major, since query plans can change. The PostgreSQL 18 release announcement notes that pg_upgrade retains planner statistics across major upgrades, so confirm on your target version whether an ANALYZE pass is still needed before reopening traffic. If you are skipping majors, review the release notes for every skipped version first. Run a rehearsal in staging with a recent copy of production data, time each step, and restore a backup to confirm it works. Keep the old cluster until the new one has run a normal business cycle, and remember that a link-mode pg_upgrade run makes the old cluster unusable.
Which PostgreSQL versions are still supported and when they end
This table lists each PostgreSQL major version with the latest release on the versioning page, its support status and the date its five-year support window closes. Each major receives five years of support from its first release, so the end date is the deadline for planning the move to a newer major. Confirm the current minor release for each major on the PostgreSQL versioning page before you schedule patching or a major upgrade, since minor releases come at least every three months.
| Major version | Latest release listed | Status | End of support |
|---|---|---|---|
| 19 | First major release on November 19, 2026, the newest major listed | Supported, five-year window begins at its first release | November 19, 2031 |
| 18 | 18.7, first released September 25, 2025 | Supported, minor releases at least every three months | November 14, 2030 |
| 17 | 17.12 | Supported, minor releases at least every three months | November 8, 2029 |
| 16 | 16.16 | Supported, minor releases at least every three months | November 9, 2028 |
| 15 | 15.20 | Supported, earliest end date among the current majors | November 11, 2027 |
| 14 | Final release November 12, 2026, no releases after | Final release only, support window already closed | November 12, 2026 |
| 13 and earlier | No further releases from the project | Unsupported under the versioning policy, upgrade to a supported major | Support already ended |
Dump and reload, pg_upgrade or logical replication: which fits your downtime
Minor releases never change the internal storage format, so a minor update only means installing new executables and restarting the server. A major upgrade changes the on-disk format, so you choose one of three documented routes: dump and reload with pg_dumpall, pg_upgrade, or logical replication. Your downtime budget drives most of that choice. Dump and reload suits a team that can take the server offline for a full export and reload, because the outage grows with data volume. Time a restore of a recent backup on comparable hardware before you agree a window, and ask your DBA to confirm the figure against your largest databases.
pg_upgrade is the in-place route for teams that need a shorter outage than a full reload but still want to keep their existing cluster. On PostgreSQL 18, pg_upgrade retains planner statistics across major upgrades, so the optimizer has statistics on the new major from the start. The release also adds parallel jobs and a --swap option. Set the parallel job count to what your target host can sustain for disk and CPU, and confirm what --swap does for your data directory layout in the PostgreSQL 18 documentation before you use it. Rehearse the upgrade on a copy of production, and keep the old cluster intact until your acceptance tests pass, since the rollback steps depend on the options you chose.
Logical replication works between different major versions and documents only several seconds of downtime at switchover, but that figure assumes the setup and checks are finished before cutover. You need publications and subscriptions for every table in scope, a decision on sequences and schema changes that occur during the sync, and row counts or checksums compared between old and new. Choose it when the outage budget is tight and your team can monitor replication until cutover. Skipping intermediate majors is allowed, but review the release notes for every version you skip before you start, and confirm the steps in the PostgreSQL upgrading documentation.
How a PostgreSQL major version upgrade runs step by step
The sequence takes a PostgreSQL cluster from a documented inventory through release-note review, method choice, rehearsal and a verified cutover, then returns it to routine minor updates, so each major upgrade produces records that the next step depends on, and leaves evidence that reviewers can check.
Inventory the current cluster and its dependencies
The DBA or platform team lists the running major and minor version, every installed extension and its version, replicas, backup jobs, connection poolers, and each application or scheduled job that reads or writes the database. Extensions matter because each one needs a build for the target major before cutover. The step is done when the inventory is written down and every item has an owner. If the current major is 14 or older, confirm its support status on the versioning page first, since 14 reached its final release on November 12, 2026.
Read release notes for every major crossed
The team reads the release notes for each major version between the current one and the target, including any skipped majors, because PostgreSQL allows skipping intermediate majors but recommends reviewing the notes for every skipped version first. The output is a short list of behavior changes, removed features and changed defaults that touch this database, each with an owner and either a fix or a recorded decision to accept it. Application queries, extensions and configuration files are checked against that list. The step is done when every item is resolved or accepted by the people who run the application.
Choose one documented upgrade method
The team picks one of the methods in the upgrading documentation: dump and reload with
pg_dumpall,pg_upgrade, or logical replication into a new major. Dump and reload is the easiest to reason about, but the database is unavailable for the whole reload.pg_upgrademigrates the existing data directory without a full export and reload. Logical replication can limit downtime to several seconds, but DDL, sequences and large objects are not carried, so those need a separate plan. The decision record names the method, the rollback path and the approver. The step is done when that record is signed.Rehearse on a copy of data and application
The team restores a recent copy of the production cluster to separate hardware, runs the chosen method against it, and points a copy of the application and its scheduled jobs at the upgraded instance. They record the duration of each stage, run the application's regression tests, and confirm that every extension loads and that queries touching changed behavior still return correct results. If the target is PostgreSQL 18, confirm that
pg_upgradekeeps planner statistics, as the PostgreSQL 18 release announcement describes, then check query plans on your own workload. The output is a runbook with exact commands, stage timings and a list of failed checks, each fixed and retested.Cut over in the agreed window and verify
Within the change window agreed with business owners, the team stops writes, runs the chosen method on production, starts the new major and points applications at it. The on-call DBA confirms that the server accepts connections, extensions load, backups and replicas are rebuilt on the new major, and application smoke tests pass. Rollback follows the path in the decision record until verification is complete. The step is done when the signed checklist shows every check passed and the old cluster is kept for the agreed rollback period.
Return to routine minor updates
After the major upgrade, the team returns to routine minor updates. PostgreSQL describes these as stopping the server, installing the new binaries and restarting, with no dump and restore, because minor releases never change the internal storage format. Minor releases arrive at least every three months for each supported major, so the patch schedule should name an owner and track the end-of-life dates on the versioning page. The step is done when the new minor version is recorded in the inventory from the first step and the schedule is in the team's change calendar.
Where the rollback points sit in the upgrade sequence
The diagram starts from the current major cluster and moves through release-note review, which covers every skipped major as well as the target. Method choice follows: dump and reload, pg_upgrade or logical replication. A rehearsal on a copy feeds the go or no-go decision. Before cutover, the current cluster remains the source, so a no-go leaves production untouched. After cutover, the rollback path depends on the method you chose. This page does not set that path out, so confirm it in the upgrade documentation and test it before go-live. Verification comes before the new major is treated as running.
Rollback is simple before cutover and depends on the chosen method after it.
Where documented breaking changes live and what to check
Breaking changes are recorded in the release notes for each major version you cross, and that includes any major you skip. PostgreSQL lets you skip intermediate majors, but the upgrade guidance says to review the release notes for every skipped version before you start. Make that review a named checklist item with an owner. This page does not list individual breaking changes. For the PostgreSQL 18 step, the pg_upgrade changes to read closely cover planner statistics, which pg_upgrade now retains across major upgrades, plus the new parallel jobs option and the --swap option. Confirm how each one changes your runbook, and check the exact flags against the upgrade documentation for your target version.
Next, check what runs on top of the server, because that is where many upgrades stall. Inventory every installed extension and confirm that a build exists for your target major before you book the change window. Then list the application SQL and the driver versions in use, and run the queries your applications send against the target major in a staging copy, since behavior changes can appear in SQL that works today. Ask application owners which client libraries and connection pool settings are pinned, and record the versions that passed. Include backup, monitoring and migration tools in the same inventory, because each of them opens its own connections to the database.
If the database runs as a high availability cluster, Patroni adds a check of its own. The Patroni documentation describes support for PostgreSQL 9.3 to 18, so confirm in the documentation for your installed Patroni version that the range covers your target major before you upgrade any node. Do not assume a newer Patroni release covers a newer major without checking. Rehearse the switchover and the rollback path in staging first, and write the Patroni version, the target PostgreSQL major and the rollback point into the change ticket so the on-call team can act without guessing.
How preparation differs on VMs, Kubernetes and managed services
On virtual machines, your team controls the binaries, the distributed configuration store and the order of every step. Patroni manages failover and leader election, but it does not run the major upgrade for you. Its documentation lists PostgreSQL 9.3 to 18, and PostgreSQL 19 was first released on November 19, 2026, so confirm that your Patroni release covers the target major before you plan. The PostgreSQL upgrading guide describes the dump and reload, pg_upgrade and logical replication paths.
- Target major check: Confirm the target major sits inside the range your Patroni version documents. If it does not, the plan needs a supported Patroni release first.
- Backup restore tests: Restore the latest base backup to a scratch VM and open it on the target major. Confirm your backup tool supports that major before you rely on it for rollback.
- Staging: Build a staging cluster with the same Patroni version, configuration store and node count, then rehearse a switchover and a forced failover.
- Extensions and integrations: Install each extension build for the target major on every node. Check connection poolers, monitoring exporters and any scripts that call
patronictl. - Rollback ownership: The DBA or platform team owns this decision. Name the last point at which rollback means restoring from backup, and agree that limit with the application owners before the window opens.
Confirm the target major, the Patroni support range and your backup tool's version matrix in writing before you book a change window.
CloudNativePG runs PostgreSQL as a Kubernetes workload, manages PVCs directly and uses the Kubernetes API for failover. A major upgrade therefore moves through image tags, operator versions and storage behavior, and each of those needs its own check. Confirm the majors the operator supports in its CloudNativePG documentation for the release you run. CloudNativePG 1.30.1 was released on September 23, 2026, so check whether your operator version is that release or later.
- Supported majors: Check the operator documentation for the target major and the operator version that supports it. Do not assume the image catalog already includes the new major.
- Backup restore tests: Restore from object storage backups into a separate namespace and run application test queries. Confirm WAL archiving works with the new image before you start cutover.
- Staging: Use a non-production cluster with the same operator version, storage class and image, and rehearse the switch, including a failover.
- Extensions and integrations: Confirm each extension is present in the target image. Update poolers, monitoring and any GitOps manifests that pin image tags, since those pins are easy to miss.
- Rollback ownership: The platform team operates the Kubernetes side, but the database owner should approve the rollback trigger. Rollback on this stack often means restoring a backup or reversing a replication path, which takes longer than a pod restart.
Confirm the operator's supported majors and your storage class's snapshot behavior in writing before you set a window.
Amazon RDS for PostgreSQL, Azure Database for PostgreSQL and Cloud SQL run community PostgreSQL, but the provider controls the host, the base backups and much of the upgrade mechanics. Version availability is the first check. The Cloud SQL version list runs from 9.6 to 18, with 18 as the default, so confirm whether your target major is offered in your region. Migration tooling also varies by provider, so confirm which options your provider supports for your path.
- Target major availability: Confirm the target major is offered in your region and on the instance type you run. Check whether the provider performs an in-place upgrade or expects a migration. Azure's overview names Azure Database Migration Service and pg_dump with pg_restore as migration options.
- Backup restore tests: Use point-in-time restore to create a copy and run the upgrade on the copy. Confirm the backup retention period covers your rollback window.
- Staging: Create a staging instance from a recent snapshot with the same flags or parameter settings, then rehearse the upgrade. Parameter groups and flags differ by provider, so confirm custom settings carry over.
- Extensions and integrations: Check the provider's extension list for the target major, since availability varies. Confirm that IAM or Azure AD authentication, private networking and connection poolers still work after the upgrade.
- Rollback ownership: Your team holds the rollback decision, and its options depend on what the provider can restore. Ask the provider in writing what it can revert, and whether recovery means a restore to a new instance with a repointed connection string.
Confirm the target major, extension list and migration tool with the provider's current documentation before you set the window.
What drives the effort and downtime of an upgrade
The same major upgrade takes very different time and money depending on the method, the number of clusters and what runs on top of them. Each card names one driver and who pays for it, so you can check a quote line by line against your own environment.
Chosen method and setup work
Dump and reload, pg_upgrade and logical replication trade setup work against outage length. Dump and reload is the simplest to reason about but usually needs the longest outage. pg_upgrade and logical replication need the target version installed beside the current one, plus a tested cutover. Your staff or a partner under written scope carries this setup work, while a managed provider carries it only inside the service it runs.
Upgrade docsDatabase count and size
Each cluster is a separate upgrade with its own rehearsal, backup check and rollback point, so effort grows with the number of clusters. Dump and reload time grows with data volume, and larger databases often push the plan toward pg_upgrade or logical replication. Every cluster and its data volume belong in the written scope. Your DBA team pays for this time in-house, and a partner bills it against the scope you agree.
Extensions and custom code
Each extension needs a build for the target major version, and every stored procedure, trigger and custom function must still behave as expected afterward. Check extension versions and custom code during the rehearsal, before cutover day. An extension without a target-version build can stop the whole plan. Your developers pay for code fixes, and a partner pays only for the fixes its written scope names.
HA topology and backup tooling
Replicas, failover managers and backup jobs all depend on the PostgreSQL version they were set up for. Confirm the failover manager supports the target major before you move the primary, and rebuild standbys in the order your topology requires. Restore a backup taken on the new version, then check that the rollback path still works. Your platform team pays for standby rebuilds and failover retests.
Application and driver testing
Client drivers, ORMs and query plans can change behavior after a major upgrade even when the schema loads cleanly. Planner statistics affect query speed, so compare slow query timings before and after the test run. If you skip major versions, review the release notes for every skipped version first. Application teams pay for regression testing, and the test window depends on how many services connect to the database.
Recurring upgrade cycle
PostgreSQL ships a minor release at least every three months and supports each major for a fixed window, so the upgrade cycle repeats for every major you run. Minor updates skip the dump and restore but still need a restart window and a plan. Ask a partner what ongoing support covers in the quote, including the rehearsal of the next major and who is on call during each window.
Versioning policyWhy testing and rollback planning come before cutover
A rehearsal is the only place a team learns whether its chosen method works on its own data, so it should run that method end to end on a copy of production data before anyone schedules a change window. Use the same steps planned for cutover, in the same order, whether that is dump and reload, pg_upgrade or logical replication. Then run the application test suite against the upgraded copy, confirm every installed extension loads and its functions return the results they gave before, and restore a backup taken from the upgraded copy to prove the restore path works. Time the whole sequence during the rehearsal, including the application switch, so the downtime you quote comes from a measurement.
Rollback is where the upgrade documentation leaves more to the team. The PostgreSQL upgrading guide describes the upgrade methods, but it does not set out one rollback procedure for every method. The team must define and test its own before the change window. Check the pg_upgrade documentation to see whether the mode you chose leaves the old cluster usable, because that answer decides whether falling back means restarting the old server or restoring from backup. For logical replication, confirm whether and how changes flow back, and who owns that decision. Write the rollback steps down and rehearse them.
Backup restore tests and the rollback decision belong in the same rehearsal. Take a fresh backup of the source cluster just before the change window, restore it to a separate host, start it on the original major version and compare row counts and key queries against the source. Then agree the go and no-go criteria in advance: which application test failures stop the cutover, how long the team waits on the new cluster before falling back, and who has authority to call it. In a rehearsal these criteria are easy to revise. During a live change window they tend to be argued out under pressure.
What drives the cost of a PostgreSQL major version upgrade
What does a PostgreSQL major version upgrade cost?
Most of the cost is staff time, with smaller amounts for staging capacity, testing and any partner fee. DeployOpen does not publish a price list, so a quote follows from a written scope. The components are:
- Staff time for inventory, rehearsals, the change window and the rollback decision
- Staging capacity large enough to hold a recent copy of production data
- Testing effort from application owners who confirm queries, extensions and scheduled jobs behave the same on the new major
- Partner fees, if you use one, set by the agreed scope
Costs rise with the number of databases, extensions and client applications, and with the number of rehearsal cycles. The first upgrade carries one-time work such as the runbook and test scripts. The next upgrade repeats much of that work, and PostgreSQL ships a major release about once a year, so plan the process as recurring.
How long does a PostgreSQL major version upgrade take?
Duration depends on the upgrade method, the database size and how deep the testing goes, so no single figure fits every estate. PostgreSQL documents dump and reload, pg_upgrade and logical replication, and each trades downtime against setup effort. Logical replication can move a database to a new major with only several seconds of downtime, according to the PostgreSQL upgrade documentation, but it needs replication setup and validation before the switch. In many projects, testing takes longer than the switch itself. Ask for a schedule in the written scope that shows rehearsal dates, the change window, the rollback test and the retest, and check each step against your own database size and extension list.
What does a major upgrade need from our team?
It needs an inventory, staging access, application owners who can test and a change approval path. The inventory should cover:
- Every cluster, database, extension, replica, backup job and client application, each with a named owner
- The current PostgreSQL version, because skipping intermediate majors means reviewing the release notes for each skipped version first
Staging access matters because a rehearsal only proves something when it restores a recent copy of production data on comparable hardware. Application owners run their own test scripts and sign off on query results, reports and scheduled jobs. Change approval needs a window agreed in advance and a named decision maker for the rollback. If an audit will review the change, bring your compliance team in early so the evidence is captured during the work.
Can our own DBAs upgrade PostgreSQL without an outside partner?
Yes, for documented methods on self-managed PostgreSQL, if you have a skilled database administrator who can rehearse each step and run the rollback. A single database with few extensions is usually within reach of an experienced in-house team. The harder cases are large estates, first-time upgrades and teams that have not practised a rollback. Managed services work differently because the provider runs the engine. Amazon RDS for PostgreSQL, Azure Database for PostgreSQL and Cloud SQL for PostgreSQL run community PostgreSQL and use provider tooling for upgrades, so your team plans the application side and confirms each provider's upgrade process and supported versions in its documentation before the window. Azure also lists Azure Database Migration Service or pg_dump and pg_restore for moving data.
When should we bring in an implementation partner for a PostgreSQL upgrade?
Bring in a partner when the upgrade involves high availability clusters, many extensions, compliance evidence needs or no rehearsal environment. Each of these adds steps that are easy to miss:
- HA clusters, where the configuration store, replicas and failover steps must be tested in order
- Many extensions or custom code, which need compatibility checks against the new major before the window
- Compliance evidence, where change records, test results and rollback proof must be in a form an assessor can review
- No rehearsal environment, where a partner can help build one in your infrastructure before the change
DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. It prepares systems and evidence for compliance assessments but does not issue audit reports or certifications. Most engagements are fixed scope, agreed in writing before work starts.
What should we ask for in a PostgreSQL upgrade quote?
Ask for a written scope that names the method, environments, rollback test, retest and handover documents, plus a schedule. Include:
- Scope: which clusters, databases, extensions and client applications are covered, and what is excluded
- Method: dump and reload, pg_upgrade or logical replication, with the reason for the choice and the skipped versions whose release notes will be reviewed
- Environments: how many rehearsal runs, in which environments, and who provides the access
- Rollback test: proof that the rollback path works in staging, and the decision point for using it
- Retest and handover: post-upgrade checks, the retest, and the runbook, inventory and monitoring notes delivered to your team
Also ask which assumptions would change the price or the schedule. DeployOpen does not publish a price list, and a quote follows from the written scope.
How DeployOpen plans and runs PostgreSQL major upgrades
DeployOpen plans and runs PostgreSQL major upgrades inside your own infrastructure, on your VMs, Kubernetes cluster or air-gapped network. We scope the upgrade path, the extensions and applications that depend on the database, and the rollback plan before any work starts. Engagements are fixed-scope, with deliverables and timelines agreed in writing.
How we scope
- The written scope lists which PostgreSQL major versions are in play and the target version.
- Release notes for every skipped major version are reviewed and recorded before the upgrade method is chosen.
- Fixed-scope agreements cover the upgrade method, test environments, cutover window and rollback, and ongoing support is available as a retainer.
How we build
- Rehearsals run on a restored copy of your data inside your environment before any production change.
- The upgrade method, dump and reload, pg_upgrade or logical replication, is chosen by weighing downtime against rollback needs.
- Extensions, application drivers, backup jobs and monitoring are checked against the target version before cutover.
How we hand over
- Runbooks document the pre-checks, cutover steps, validation queries and the tested rollback path for your operators.
- Before-and-after evidence covers versions, configuration changes, test results and the backup taken before the upgrade.
- Method choices follow the PostgreSQL upgrade documentation and are recorded with the reasons behind them.
How we support
- Ongoing support covers the minor release cadence, which PostgreSQL ships at least every three months per supported major.
- Retainers can include upgrade work, retesting and continuous testing, scoped in writing before work starts.
- Confirm each major's end-of-support date against the PostgreSQL versioning policy before scoping starts.

