PostgreSQL 14 to 18 upgrade

PostgreSQL 14 reaches end of life on November 12, 2026, and PostgreSQL 18 is the current release. This page explains how to plan the jump from 14 to 18, what changes, and how to rehearse the cutover.

On this page

Why move from PostgreSQL 14 to 18 before November 12, 2026

Upgrade directly from PostgreSQL 14 to 18 before November 12, 2026, using either pg_upgrade or logical replication. If you run a self-hosted PostgreSQL 14 estate, that date is the end of community support for the version, so the question is no longer whether to move but which route and when. The PostgreSQL versioning policy supports each major version for five years from its initial release. Version 14 is supported until November 12, 2026, version 15 until November 11, 2027, version 16 until November 9, 2028, version 17 until November 8, 2029 and version 18 until November 14, 2030. Versions 13 and older are already unsupported. Confirm these dates against the policy page before you set a deadline, because your own change calendar and any vendor packaging of PostgreSQL may impose earlier cutoffs.

Minor releases do not solve this problem. They keep a supported major version patched by replacing executables and restarting, because minor releases never change the internal storage format. A major jump changes the on-disk format, so the data must be dumped and restored, converted with pg_upgrade, or replicated logically into a new cluster. That makes the move a planned project with its own rehearsal, rollback plan and application testing. Go straight to 18 rather than stopping at 15 or 16, because each intermediate hop repeats the same work and the newest supported line gives you the longest runway before the next migration.

What changes between PostgreSQL 14 and 18 and what each change asks of you

This table lists the PostgreSQL 18 changes that affect a move from version 14 and pairs each with its likely impact on applications and the step to confirm before cutover. Read it as a checklist: rows marked for password or authentication changes usually need the most coordination with application and security teams.

Change in PostgreSQL 18Impact on your applicationsAction to confirm
pg_upgrade keeps planner statisticsQuery plans may stay stable immediately after upgrade instead of starting from empty statisticsCompare key query timings in rehearsal and confirm whether ANALYZE is still needed after cutover
pg_upgrade parallel jobs and --swap optionUpgrade runtime and disk use change depending on the mode and job count chosenConfirm the mode and job count in a rehearsal on a copy of production-sized data
Asynchronous I/OI/O behavior changes under load, so latency-sensitive workloads may behave differentlyTest representative workloads on 18 and set the I/O configuration deliberately before go-live
OAuth 2.0 authentication methodGives a new login path if your identity provider supports it, with no change needed for existing loginsDecide whether OAuth is in scope and confirm your identity provider and client drivers support it
uuidv7() functionNew time-ordered UUID generation is available, but existing UUID defaults and code do not changeCheck whether new keys should use uuidv7() and confirm index and sort behavior in your schema
Virtual generated columns by defaultGenerated columns that were stored in 14 may now be computed on read, which can change performance and storageReview generated column definitions and decide whether any must stay STORED
MD5 password authentication deprecated in favor of SCRAMClients or roles still using MD5 may fail to log in after password and pg_hba.conf changesFind roles with MD5 hashes, confirm client driver SCRAM support, and test every application login before cutover

Choosing pg_upgrade or logical replication for the 14 to 18 jump

The choice between pg_upgrade and logical replication comes down to how much downtime the cutover can absorb. Logical replication works between different PostgreSQL major versions, so a PostgreSQL 14 publisher can feed a PostgreSQL 18 subscriber and the cutover itself can take only several seconds of downtime. The cost is setup and ongoing work: you must confirm that tables have primary keys or replica identities, decide how sequences will be synchronized, and check that DDL changes made during the sync are replayed by hand. pg_upgrade instead rewrites the system catalogs of the existing data directory into the new version, so the window is the length of the upgrade run, which you must measure in a rehearsal on a copy of production data. Run pg_upgrade --check first, then time a full run on the same hardware and data size before you commit to a window.

Extension support and rollback push the decision in different directions. With pg_upgrade, every extension you load must have a PostgreSQL 18 build installed in the new cluster before the run, and the old cluster is only a safe fallback if you use the copy mode, since link mode modifies the old data files in place. With logical replication, the new cluster is built fresh, so extension versions are installed and verified separately, and the old 14 cluster keeps running untouched until you switch traffic, which makes rollback a matter of reversing the subscription direction if you have prepared a reverse path. Confirm with each extension's maintainer that it supports PostgreSQL 18 before choosing either route.

Use this section to set the decision, then read the sibling method page for the detailed copy, link, clone and swap options and their rollback behavior. Ask your team to write down the maximum acceptable downtime, the extensions in use, and the rollback step you will take if the new cluster misbehaves after cutover. The PostgreSQL upgrading documentation describes both methods and is the reference to check against your chosen version.

Preparing the PostgreSQL 14 estate before any cutover

Most delays in a PostgreSQL 14 to 18 upgrade come from work done before the cutover window opens. The five items below cover the inventory, the rehearsal and the client-side versions that have to be settled first, so the cutover itself is a short, predictable step.

Verified backup and restore test

Take a fresh backup of every 14 cluster and restore it to a separate host. Confirm the restored cluster starts, row counts match on the largest tables and the application can log in. A backup that has never been restored is a hope, not a rollback path. Record how long the restore took, because that figure sets the minimum rollback window for the cutover plan.

Continuous archiving docs

Extension inventory and PostgreSQL 18 builds

List every extension installed in each database with SELECT * FROM pg_extension; and note the installed versions. For each one, confirm a build exists for PostgreSQL 18 from the extension's maintainer or your package source. Extensions without a 18 build block pg_upgrade, so a missing build found here is a schedule risk, not a late surprise.

Roles and pg_hba.conf entries still on MD5

Query pg_authid for roles whose password hash begins with md5 and review every md5 method in pg_hba.conf. Each role needs a password reset under password_encryption = scram-sha-256 and each host line needs a SCRAM method. Confirm every client driver supports SCRAM before the change. Clients that still send MD5 will fail to log in once the entries change.

Authentication methods docs

Production-like test environment

Build a 18 test environment with a copy of the 14 data, the same extensions, the same pg_hba.conf and the same hardware class as production. Run the application test suite and the batch jobs against it. Include the replicas, because a standby on a different version or with a missing extension will break failover. Ask the team to agree in writing which differences from production are acceptable.

Driver and PgBouncer versions

Record the client driver version for every application and the PgBouncer version in front of the database. PgBouncer 1.26.1 is the current release named in the facts, released October 14, 2026, and includes security fixes. Confirm each driver and pooler version supports PostgreSQL 18 and SCRAM authentication, and schedule any upgrades before the rehearsal so test results reflect the final stack.

PgBouncer site

Moving from MD5 to SCRAM passwords during the upgrade

Applications whose drivers already negotiate SCRAM-SHA-256 need the least change, but they still need confirmation. The database side of the work is to make sure new and reset passwords are stored as SCRAM verifiers and that the authentication method in pg_hba.conf matches what the application expects. The application side is mostly verification, since a driver that supports SCRAM will authenticate once the server offers it. Confirm the following with each application owner:

  • Driver version: the exact client library and version in each service, including any sidecar or batch job that connects separately.
  • Connection string and TLS settings: whether the client forces a specific method or channel binding setting.
  • Credential storage: where the password lives (secrets manager, environment file, configuration repository) and who can rotate it.
  • Pooler behavior: whether a connection pooler such as PgBouncer sits in front and how it authenticates to the server.
  • Test evidence: a login test against a staging cluster on the target version, logged so the security team can review it.

SCRAM-ready applications still need a planned rotation window, because the stored verifier changes only when the password is set again.

The upgrade sequence from 14 to 18 with checks and rollback points

This sequence moves a PostgreSQL 14 cluster to PostgreSQL 18 in an order where every change has a check before it and a rollback point until the team signs off. The 14 data directory stays intact throughout, so the cutover can be reversed until sign-off.

  1. Freeze the inventory of clusters and dependencies

    Record every PostgreSQL 14 cluster, its size, its replicas, its installed extensions with exact versions, its pg_hba.conf rules, its roles using MD5 password hashes, and every application and job that connects to it. The database owner and application owners sign the list. Done means every cluster has a row in the inventory and every extension and authentication method is named, so later checks have a fixed baseline to compare against.

  2. Install PostgreSQL 18 binaries beside version 14

    Install the PostgreSQL 18 server binaries from your packages or build pipeline into a separate path, leaving the PostgreSQL 14 binaries and the 14 data directory untouched. Initialize a new, empty 18 cluster only as a target for the check. Done means both binary sets report their versions and the 14 service still starts and serves queries, which confirms the rollback path exists before anything else changes.

  3. Run pg_upgrade in check mode

    Run pg_upgrade with the --check option from the PostgreSQL 18 binaries, pointing at the 14 data directory and the new cluster directory. It reads the old cluster and reports incompatibilities without modifying data. Keep the full output as evidence. Done means the tool reports that the clusters are compatible, or it lists every blocking item, which becomes the work for the next step.

  4. Resolve extension and authentication findings

    Work through each blocking item and each warning. For extensions, install builds that match PostgreSQL 18 into the new binary set and confirm version pairing with the extension vendor or project documentation. For authentication, identify roles that still store MD5 hashes, reset their passwords so they are stored as SCRAM-SHA-256, and update pg_hba.conf and client drivers that only support MD5. Done means a fresh --check run is clean and an inventory of remaining MD5 roles is empty.

  5. Rehearse the upgrade on a copy of production

    Restore a recent backup of the 14 cluster onto separate hardware or a separate VM, then run the full upgrade there using the method chosen for the cutover. Time each stage, run the application test suite against the upgraded copy, and log every error. Confirm the 18 server can start and that the extensions load. Done means the rehearsal completes end to end and the team has a written runbook with the exact commands, expected output and the point where rollback begins.

  6. Schedule the cutover and confirm the rollback plan

    Agree a maintenance window with the application owners and stakeholders, publish the freeze on schema and configuration changes, and confirm the restore path from a current backup. Record who can authorize a rollback and the conditions that trigger one. Done means the change is approved in writing, the backup is verified as restorable, and the people on call have the runbook.

  7. Run the upgrade and keep the 14 data directory

    Stop the 14 cluster, run pg_upgrade against the agreed method, and start the 18 cluster. Do not delete or modify the 14 data directory during or after the cutover, because it is the rollback point. Follow the post-upgrade steps in the release notes, including running the statistics or analyze step that pg_upgrade reports. Done means the 18 server accepts connections and the upgrade log shows no unresolved errors.

  8. Verify statistics, logins and sign-off before retiring version 14

    Check that planner statistics are present on the 18 cluster, that representative queries return expected plans and timings, that every application role logs in with SCRAM-based authentication, and that extensions report expected versions. Run the agreed smoke tests and keep the 14 data directory until the application owners and the database owner sign off in writing. Done means the sign-off record exists, and only then is the 14 installation scheduled for removal.

How the cutover phases and rollback points fit together

The flow starts with inventory of the PostgreSQL 14 cluster, extensions and client authentication, then moves through check and rehearsal on a copy before a cutover decision is made. Only after that decision does the upgrade run, followed by verification. The rollback branch returns to the PostgreSQL 14 cluster, which must remain intact until verification passes. Check that each hand-off has a named owner and a written go or no-go condition.

Phases from inventory to cutover, with the rollback branch back to PostgreSQL 14.

Testing and rehearsing the cutover before production

Rehearsal is where the team learns whether the chosen method works on your data, not on a sample database. Restore a recent backup of production into a separate environment with the same PostgreSQL 14 build, the same extensions and comparable hardware, then run the full sequence: pg_upgrade --check, the upgrade itself, ANALYZE on the new cluster, application smoke tests and the rollback path. Time every step with a stopwatch and write the numbers down. The downtime that matters is the time from stopping writes on the old cluster to the first successful application transaction on PostgreSQL 18, and that figure will differ between a copy, link or clone run and a logical replication cutover. Ask your partner or vendor to confirm which steps are included in their measured window before you accept a downtime estimate.

Test authentication on the rehearsal cluster with the same drivers and connection strings your applications use in production. Confirm that every role that logged in with MD5 now authenticates with SCRAM-SHA-256 after the password changes described above, and that pg_hba.conf entries reference the methods you intend. Connect from each application tier, batch job, reporting tool and administrative client, because a single old driver or forgotten service account is the most common reason a cutover stalls. Run representative queries, including the slowest reports and the write paths from the busiest hours, and compare results and plans with the pre-upgrade baseline. Verify that replicas, backup jobs and pg_basebackup or archiving commands reconnect and complete against the new cluster, since a successful database start does not prove those jobs work.

Before the production window, write a go or no-go checklist that names each check, its owner and the evidence that closes it. A typical list covers row counts and checksums on critical tables, application login results, extension loading, a completed backup and a restore test, replication status, and monitoring that reports the new major version. Define the rollback plan explicitly: keep the PostgreSQL 14 data directory untouched until the success criteria are met, state who decides to roll back and by what time, and rehearse that reversal too. Confirm with the method's documentation which rollback options it leaves, because a pg_upgrade link run changes files that the old cluster depends on, while a logical replication cutover can keep the old cluster as a live target for reverse replication. Record the results so that the signed checklist, not memory, is what the team points to after cutover.

What makes a PostgreSQL 14 to 18 upgrade longer or shorter

This table lists the factors that most change the effort of moving from PostgreSQL 14 to 18, and what each one asks of your team. Read each row to see what adds work, then use the quote column to make sure a partner's scope covers it. The main takeaway is that extension count, authentication setup and downtime budget usually matter more than the version gap itself.

DriverWhat increases effortWhat to ask for in a quote
ExtensionsMany extensions, or ones without a build for PostgreSQL 18, such as spatial, vector or audit extensions that must be rebuilt and paired with matching versionsNamed list of every extension, the target build for each, and who tests extension behavior after the upgrade
Data size and downtime budgetLarge clusters that cannot take a pg_upgrade copy window, or a tight downtime target that pushes the work toward logical replicationChosen method (pg_upgrade mode or logical replication), the measured cutover window from a rehearsal, and the rollback path
Replicas and HA toolingStreaming replicas, Patroni or CloudNativePG clusters, which need failover paused, replicas rebuilt or upgraded, and coordinated restartsStep-by-step plan for each replica, how automatic failover is paused and resumed, and who runs the cutover
Custom authenticationLDAP, RADIUS, certificate, PAM or GSSAPI rules in pg_hba.conf that must be retested against the new cluster, plus any new OAuth 2.0 methodWritten review of every pg_hba.conf entry, test logins for each method, and confirmation of client library support
Applications and drivers using MD5Many roles still holding MD5 hashes, or older client drivers that cannot authenticate with SCRAM, so each application needs a change and testInventory of roles and clients using MD5, a password reset plan, and a test matrix covering every application
Backup and restore speedSlow base backups or restores that leave no tested fallback, or no current backup taken before the upgradeConfirmed backup method, a timed restore test on a copy, and proof that the restore is usable before cutover

Questions teams ask before upgrading PostgreSQL 14 to 18

What does a PostgreSQL 14 to 18 upgrade cost?

The cost is mostly the labor to prepare, rehearse and cut over, not the software, which is released under the PostgreSQL License. Costs come from the number of clusters, how many extensions and client applications must be checked, the size and count of replicas, the downtime window you can accept, and how much testing your application needs. Internal staff are paid for their time either way. If you use a partner, the cost follows from a written scope that lists the environments, extensions, applications and deliverables. Ask any quote to separate one-time work (inventory, rehearsal, cutover, documentation) from recurring work such as post-upgrade monitoring or support retainers.

How long does a PostgreSQL 14 to 18 upgrade take?

The duration depends mainly on the upgrade method and the amount of data. A pg_upgrade run has to stop the old cluster for the time the upgrade takes, and that time grows with the database's schema and the link or copy mode you choose. Logical replication can cut over in seconds of downtime, according to PostgreSQL's upgrade documentation, but it needs setup, replication monitoring and a sequence-and-schema check before cutover. Other factors include extension count, the number of applications to retest, and how many rehearsals you run. Ask your team or any partner for a timeline tied to these drivers and to a rehearsal on a copy of production.

What does the internal team need to provide?

Your team needs to own the decisions that only your organization can make. That includes the maintenance window, the acceptable downtime, the rollback threshold, and sign-off from application owners. Engineers need access to every cluster, replica and backup, plus the ability to change pg_hba.conf and roles during the MD5 to SCRAM change. Application teams must test their drivers and connection strings against PostgreSQL 18. Plan for named people in each role during the cutover, and confirm who will answer alerts after the new version goes live.

Can our own team upgrade PostgreSQL 14 to 18 without a partner?

Yes, a capable internal team can run this upgrade, and the PostgreSQL documentation covers both pg_upgrade and logical replication in detail. The questions to answer honestly are whether you have someone who has done a major upgrade before, whether you can rehearse on production-sized data, and whether you can keep the on-call rotation covered during the window. Partners are usually engaged for scoping, extension compatibility checks, cutover runbooks, or extra capacity. Whichever route you take, a written plan with named owners and a tested rollback is what makes the upgrade reviewable by your security and compliance teams.

What happens if we do not upgrade PostgreSQL 14 before November 12, 2026?

PostgreSQL 14 is supported until November 12, 2026, according to the PostgreSQL versioning policy. After that date the community stops providing fixes for it, including security fixes, so the database falls into the same position as versions 13 and older. Staying on it means running an unpatched database that your auditors and security reviewers will flag. Waiting also compresses your schedule, because the upgrade then competes with other changes and with any unplanned incident. Confirm the exact end-of-support date and your own compliance deadlines before setting the plan.

How does rollback work after the PostgreSQL 18 cutover?

Rollback depends on the method you used. With pg_upgrade, the old cluster's data is only safe to restart if the upgrade was run in a mode that preserves it, so you must read the options chosen before cutover and keep a verified backup. With logical replication, the old PostgreSQL 14 cluster can stay in place as a source while changes flow across, which gives a practical path back until you decommission it. In both cases, rehearse the rollback on a copy and record the point after which rollback is no longer possible. Ask for this decision to be written into the runbook before the window opens.

What should we check for extensions and MD5 passwords first?

Start with an inventory of every extension, every role using MD5 password hashes, and every client driver and pg_hba.conf entry. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so roles and drivers still using MD5 need a planned change before or during the upgrade. Extensions need builds that match PostgreSQL 18, and you should confirm each one's version pairing with its maintainer. Running pg_upgrade --check against a copy of your cluster is the first concrete test, and its output tells you which blockers remain before you commit to a date.

Official PostgreSQL documentation for the upgrade

Before you schedule the move, read the upgrade chapter of the PostgreSQL manual. It explains the three supported major upgrade methods (pg_dumpall and restore, pg_upgrade, and logical replication) and the warning that major versions change the internal storage format, so a minor update cannot be used to bridge a major change. Start with the upgrading a PostgreSQL cluster chapter, then match its steps against your own cluster, including the pg_upgrade --check run that your team should execute on a copy of production before any cutover window is booked.

Confirm the end of life date against the versioning policy rather than relying on a calendar reminder. The PostgreSQL versioning policy lists the support window for each major version. For PostgreSQL 14, that window closes on November 12, 2026, and PostgreSQL 18 is supported until November 14, 2030. Check that date for your own change calendar, and record it in the plan so that a slipped project still has a clear deadline for the decision to upgrade or accept an unsupported database.

Read the release announcement for the target version before you write the test plan. The PostgreSQL 18 release announcement describes the changes that affect this move, including the deprecation of MD5 password authentication in favor of SCRAM, asynchronous I/O, and planner statistics retained by pg_upgrade. Use it to build your checklist of settings and client behavior to test, then compare each item against the full release notes for every major version between 14 and 18 that your applications may touch.

How DeployOpen scopes, delivers and supports the upgrade

DeployOpen plans the move off PostgreSQL 14 as a written, fixed-scope engagement inside your own infrastructure. The work starts from your inventory of databases, extensions and password methods, then rehearses the cutover before any production change, so your team can review every step and keep the rollback path open.

How we scope

  • Inventory every cluster, database, extension and client that connects to PostgreSQL 14 before choosing a method.
  • Record the downtime budget, rollback expectations and the date PostgreSQL 14 support ends, November 12, 2026.
  • Agree in writing which upgrade path, environments and deliverables are covered, with any retainer for later support.

How we build

  • Run pg_upgrade --check against a copy of production data and log every incompatibility it reports.
  • Confirm each extension has a build for PostgreSQL 18 and document the version pairing for the new cluster.
  • Plan the MD5 to SCRAM-SHA-256 change in pg_hba.conf and role passwords, then test each client driver against it.

How we hand over

  • Deliver the rehearsal runbook with timed steps, go and no-go checks, and the rollback procedure for each step.
  • Provide post-upgrade checks for planner statistics, authentication logs and application connection behavior.
  • Document the final configuration, backup and restore verification, and the open items your team owns after cutover.

How we support

  • Support the cutover window and the first weeks of operation under the agreed scope.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the engagement closes.
  • Track the PostgreSQL 18 support timeline and the quarterly minor releases so your team can plan later maintenance.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.