IN DEPTH VIDEO ·
PostgreSQL 14 Is at End of Life. Can You Roll Back?
PostgreSQL 14 is at end of life. Compare migration paths and see how the first confirmed write changes your rollback plan.
Synthetic English narration using Kokoro Isabella.
Read the article and further sources
Chapters and transcript sections
English transcript
The first write
PostgreSQL 14 has reached end of life. You move your database, the new server takes an order, and then an application check fails. Can you switch back without losing that order? Your answer depends on what happens at the first write.
What 14.25 changes
On November 12, the PostgreSQL project released 14.25, its final community update for version 14. A server still running 14 doesn't stop working. It stops receiving community security and bug fixes. Applying the final minor release closes known issues while you prepare to move to a supported major version. A move within the 14 series can use the existing data directory. Bring the new binaries into service in a maintenance window and follow the branch-specific release notes. One security fix, CVE-2026-6460, closes a type confusion route available to a database role with object creation privileges. The impact can reach the operating system account running the database. PostgreSQL says native C extensions need to be rebuilt for full protection, and some need source changes. Check what your extension supplier ships. The 14.25 notes also list cases where affected indexes should be rebuilt. Treat those as specific tasks. An extension inventory tells you which system needs a compatibility check. The index instructions tell you which indexes to review. Then give the separate major migration a schedule, an owner, and a fallback exercise.
Choose a target your stack supports
Start with what the application actually uses. List databases, extensions and their versions, client drivers, background jobs, external consumers, backups and replicas. Check which components your target major and hosting platform support. That includes the packages you need, the privileges you can get, and the maintenance windows you can use. PostgreSQL 18 is a supported target. Clever Cloud listed the new package set a day after the community release for new add-ons and migration. For existing installations, check the version actually running. The community software allows direct major version jumps. Your managed service and your extensions may impose a different route. Check their current rules for your exact source version and region before comparing downtime estimates. Look for dependencies that sit outside application code. A subscriber feeding analytics can fall behind without changing the application's health page. A scheduled job may write to the database after the front end closes. A connection pool can hold clients on the old endpoint. Pick three checks that expose those dependencies. Run a realistic write and read it back, confirm the downstream event arrived, and compare a key query against the baseline. Assign someone to make the stop decision if any of those checks fail.
What pg_upgrade can preserve
On an installation you control, pg_upgrade is designed for major upgrades without a logical dump and reload. It creates the target system catalogs and reuses existing user data files. Run its check with the migration mode you intend to use, and provide compatible extension libraries on the target. Default copy mode transfers an independent set of files. That costs time and disk space, which you can measure against a realistic copy of the database. Where supported, clone mode uses copy on write. It starts with shared storage blocks and allocates more as files change. Link mode points both clusters at the same files. It can reduce the file transfer time. Once the new cluster has started after a link-mode upgrade, PostgreSQL warns that starting the old cluster can be unsafe. Recovery then needs a separate verified copy, even before the first customer order. Dump and restore gives you another route. It rebuilds into a separate database using a logical backup. Budget for data loading, indexes and validation. Include cluster-wide roles and tablespaces in your recovery plan. Compare elapsed time and storage with the alternatives during rehearsal.
The limits of a shorter write pause
Logical replication can copy table data while the source remains active. That may shorten the final write pause. You still have to stop all writes to the source, wait until the subscriber has caught up, switch the connection and validate the target before admitting normal traffic. PostgreSQL's built-in logical replication sends supported table changes. It does not copy schema changes, sequence states or large objects automatically. Prepare the target schema, account for objects outside the replicated tables, and note how sequence-backed orders are created. The row for order 1042 can arrive while the destination sequence still points to a number in use. Reconcile the counter before the first customer write, and test how updates and deletes identify the rows they change. A copy from 14 to a newer database is a different operation from carrying an existing logical slot through pg_upgrade. PostgreSQL documents version 17 as the minimum old major version for the relevant slot and subscription-state migration. From 14, plan how you will re-establish your consumers and avoid a processing gap. For managed hosting, compare the provider's supported upgrade and parallel cutover paths. Ask how the service handles replication lag, endpoint changes, extensions and reversals. The provider's advertised downtime covers a particular path. Budget separately for the time your team needs to validate the application.
What to prove before the outage
Restore a backup into an isolated environment and run the actual upgrade procedure there. A backup marked successful tells you the creation job finished. Recovery depends on what you can restore, how far forward you can replay archived write-ahead logs and how long it takes. Rehearse with a realistic data shape and the same extension builds you intend to put into service. Compare a few high-value counts and invariants, such as accepted orders and order totals. Capture a baseline for error rates, essential query latency and downstream lag so that the go or stop decision has an agreed reference. Include the invisible work. Decide when to refresh optimizer statistics and how to rebuild or migrate standbys. Check collation provider versions and follow PostgreSQL's instructions if sorting rules change. Rebuilding affected indexes is work to plan. Refreshing the stored collation version just updates the catalog record. Give the rehearsal a clock. Record how long you spent waiting for the copy or subscriber, completing checks and restoring service. End by practicing the recovery route, using the same clock and the same ownership you expect on the night.
What you owe the last customer
Imagine the old database stops accepting writes at eight. The new database then confirms order 4821 to a customer. Two minutes later your checks say stop. The old database might still start in an independent migration, but it was frozen before that order arrived. If you point the app straight back at that copy, the confirmation and the database disagree. A payment or other external effect may already have happened as well. The recovery plan needs to account for both. Keep a record you can reconcile and avoid executing the same side effect twice. Before opening writes, choose the rule. You might hold writes while smoke tests run and fall back during that window. With a tested capture and replay path, you can preserve accepted operations and reconcile them before reopening the old side. If you cannot prove a safe replay, plan forward recovery on the new side. Write down the two limits in plain language. How much confirmed work can you afford to lose? How long can the service be unavailable? Give the person on duty a threshold for each and make the team prove both during rehearsal.
A decision you can rehearse
PostgreSQL 14.25 gives you a final patch. A supported major version gives you a path to future fixes. Pick the target you can actually operate, choose the migration method you can rehearse, and put the first destination write on the runbook as an explicit checkpoint. Ask someone who didn't design the cutover to follow that runbook. Give them the failure signal and the number of a confirmed order. If they can explain where the order lives, how to preserve it and when service can reopen, you have an upgrade plan you can put on a calendar. The article has the release notes and the migration references. Share and subscribe for more news.
Sources and credits
- PostgreSQL Global Development Group release announcement
- PostgreSQL 14.25 release notes
- PostgreSQL 18.7 release notes
- PostgreSQL security advisory CVE-2026-6460
- PostgreSQL community versioning policy
- PostgreSQL RPM repository notes on rebuilt extensions
- Clever Cloud managed PostgreSQL availability
- PostgreSQL 18 pg_upgrade reference
- PostgreSQL 18 logical replication architecture
- PostgreSQL 18 logical replication restrictions
- PostgreSQL 18 replication publications and replica identity
- PostgreSQL 18 upgrades of logical replication clusters
- PostgreSQL 18 logical backup documentation
- PostgreSQL 18 continuous archiving and point-in-time recovery
- PostgreSQL 18 ALTER COLLATION
- pganalyze practitioner analysis of the November security release
- pganalyze practitioner coverage of logical cutovers
- Knock engineering notes from an Aurora migration
Media credits
Original diagrams, local SQLite demonstration with fictional purchase orders, ident and jingle by Lumacta News.
Archive photograph of NERSC, October 2011, by Chiara Coetzee, CC0 1.0. Used in the video and thumbnail as archival hardware context. Archive photograph source
Stock footage for context, used without source sound