GUIDE · POSTGRESQL
PostgreSQL 14 end of life: what to do now
PostgreSQL 14 got its final release on 12 November 2026. Your database keeps running, and how much time you have depends on who runs it: Ubuntu, a cloud provider or you. Here is how to check, which version to move to, and how to upgrade without surprises.
GuidesPublished 25 November 2026
What changed on 12 November 2026
Nothing stops working. The PostgreSQL project supports each major version for five years, then publishes a final minor release (PostgreSQL). For PostgreSQL 14 that was 14.25, and the announcement says plainly that 14 "will no longer receive security and bug fixes" (PostgreSQL).
That last update fixed 52 security vulnerabilities across the supported versions. The next flaw found in PostgreSQL 14 will not be fixed by the project.
Security scanners and insurance questionnaires flag software that no longer gets security fixes, so PostgreSQL 14 will start showing up in audits.
Who runs your PostgreSQL 14?
The answer decides whether you have months or should move now:
| Where your 14 comes from | Still patched? | What to do |
|---|---|---|
| Ubuntu 22.04's own postgresql-14 package | Yes, until May 2027, and until May 2032 with Ubuntu Pro | Plan it with the Ubuntu 22.04 upgrade: Ubuntu 24.04 ships PostgreSQL 16. |
| apt.postgresql.org, a Docker image such as postgres:14, or a build of your own | No: 14.25 was the last release | Upgrade to a newer major version. |
| Amazon RDS for PostgreSQL | Standard support until 28 February 2027, then paid Extended Support until 28 February 2030 | Upgrade before 1 March 2027 to avoid the charge. |
| Azure Database for PostgreSQL | Standard support until 31 January 2027, then paid Extended Support until 11 November 2029 | Upgrade before 1 February 2027 to avoid the charge. |
| Google Cloud SQL for PostgreSQL | Regular support until 1 February 2027, then paid extended support until 1 February 2030 | Upgrade before 1 February 2027 to avoid the charge. |
Ubuntu ships postgresql-14 in its main repository (Ubuntu packages), which standard security maintenance covers until May 2027 and Ubuntu Pro until May 2032 (Ubuntu). From now on Canonical has to prepare those fixes itself, since the project publishes none.
Debian's own releases never made 14 their default: Debian 12 ships PostgreSQL 15 and Debian 13 ships 17 (Debian packages). A PostgreSQL 14 on Debian usually comes from apt.postgresql.org, which only repackages the project's releases.
Docker's official postgres image no longer lists 14 among its supported tags (Docker Hub).
Managed databases: what extended support means
- Amazon RDS: after 28 February 2027, an instance enrolled in RDS Extended Support keeps running 14 and gets fixes for critical and high CVEs, for a fee from 1 March 2027 that rises from 1 March 2029 (AWS release calendar, AWS). The charge is per vCPU and per hour. AWS's example rate is $0.100 per vCPU-hour in years one and two and $0.200 in year three, so a 2 vCPU instance adds about $146 a month at first; Multi-AZ standbys are charged too (RDS pricing, AWS). Prices vary by region.
- RDS enrolment is the default when an instance was created with the AWS CLI, the API or CloudFormation, but not from the console. An instance with Extended Support disabled is upgraded to a supported version by AWS on or shortly after the end of standard support (AWS).
- Azure: servers still on 14 are enrolled in Extended Support automatically on 1 February 2027. The only way out is to upgrade; prices are on Azure's pricing page (Microsoft).
- Google Cloud SQL: versions past community end of life are enrolled in paid extended support automatically, which brings fixes for critical and high CVEs (Google Cloud). For 14 it runs from 1 February 2027 to 1 February 2030 (Google Cloud).
Extended support buys time. It does not move you to a newer PostgreSQL, so the upgrade is still waiting at the end, and on all three clouds you pay for every month you wait.
Check what you run
Four commands find most of it: the version of a database you can connect to, the clusters on a Debian or Ubuntu server, the Docker and Compose files that start from a 14 image, and the RDS instances in the current region:
psql -c "SELECT version();"
pg_lsclusters
grep -rn "postgres:14" --include="*.yml" --include="*.yaml" --include="Dockerfile*" .
aws rds describe-db-instances --query "DBInstances[?Engine=='postgres'].[DBInstanceIdentifier,EngineVersion]" --output tableOn Azure and Google Cloud, the portal shows the version of each server and flags those nearing the end of support.
Which version to move to?
| Version | Fixes from the project until | When to choose it |
|---|---|---|
| PostgreSQL 15 | 11 November 2027 | Only as a stepping stone: you will have to move again in a year. |
| PostgreSQL 16 | 9 November 2028 | The version Ubuntu 24.04 ships, and Ubuntu patches its package until May 2029. |
| PostgreSQL 17 | 8 November 2029 | The version Debian 13 ships. |
| PostgreSQL 18 | 14 November 2030 | The usual target today: Ubuntu 26.04 ships it, and RDS, Azure and Cloud SQL all offer it. |
| PostgreSQL 19 | 19 November 2031 | Released on 19 November 2026. Wait for the first minor releases and for your host to offer it. |
Dates from the PostgreSQL versioning policy. Distribution packages: Ubuntu and Debian. On Azure, PostgreSQL 19 is a preview in one region for now (Microsoft).
You can go from 14 straight to 18 without installing the versions in between. The project recommends reading the release notes of every version you skip (PostgreSQL), which is what the list below is for.
How to upgrade: four methods
| Method | Downtime | When to choose it |
|---|---|---|
| pg_upgrade | Minutes, especially with --link | A large database upgraded on the same server. |
| pg_upgradecluster | Depends on the method: a dump by default, or pg_upgrade | Debian and Ubuntu servers, where it also moves the configuration. |
| Dump and restore | The longest: it grows with the size of the data | Small databases, or a move to a new server or container. |
| Logical replication | A few seconds at the switch | Large, busy databases that cannot stop for long. |
pg_upgrade upgrades in place (PostgreSQL). Run it with --check first: it checks both clusters and changes nothing. In --link mode, the old cluster can no longer be used once the new one has started, so take a backup before (pg_upgrade).
pg_upgradecluster wraps both methods on Debian and Ubuntu. Its default is a dump, which the manual calls "slow, but safe"; -m upgrade or -m link uses pg_upgrade instead. The old cluster stays on another port until you remove it with pg_dropcluster (Ubuntu manual).
Dump and restore: use pg_dump and pg_dumpall from the newer version (PostgreSQL). It is also the simplest way to move from a postgres:14 container to a new one.
Logical replication copies the data to a new server on the new version, then you switch over (PostgreSQL). It does not copy the schema, ongoing sequence values or large objects, so create the schema first with pg_dump --schema-only and set the sequences by hand before the switch (PostgreSQL).
Managed services run the upgrade for you. Cloud SQL uses pg_upgrade, runs a precheck, and takes a backup before and after (Google Cloud). On RDS, most extensions must be upgraded separately afterwards (AWS), and on Azure, extensions such as pgvector are not upgraded automatically (Microsoft).
What usually breaks
- New databases are locked down (15). Ordinary users can no longer create tables in the public schema of a newly created database. Upgrades and restored dumps keep the old permissions, but a deploy script that creates a fresh database for the app now gets "permission denied" (PostgreSQL 15).
- Old backup scripts (15). Exclusive backup mode is gone, and pg_start_backup() and pg_stop_backup() are now pg_backup_start() and pg_backup_stop().
- Role management (16). A role with CREATEROLE now needs ADMIN OPTION on the roles it changes, which can break scripts that manage the app's users without superuser rights (PostgreSQL 16).
- Functions in indexes (17). Maintenance such as REINDEX, VACUUM and REFRESH MATERIALIZED VIEW now runs with a safe search_path. A function used by an expression index or a materialized view that reads another schema must set its own search_path (PostgreSQL 17).
- Monitoring queries (17). Some columns of pg_stat_statements and pg_stat_bgwriter were renamed or removed, so dashboards built on them need updating.
- Checksums (18). New clusters have data checksums on by default, and pg_upgrade needs the same setting on both sides. A 14 cluster usually has them off: create the new one with initdb --no-data-checksums (PostgreSQL 18). MD5 passwords are deprecated too, so move to SCRAM.
- Docker volumes (18). From the postgres:18 image on, the data lives in a version-specific folder under /var/lib/postgresql, and the volume should be mounted there rather than at /var/lib/postgresql/data (Docker Hub).
- Extensions. pg_upgrade needs the extensions' files for the new version installed before it runs (pg_upgrade). Check that each extension you use, PostGIS or pgvector for example, is packaged for your target.
- Going to 19. JIT is off by default and RADIUS authentication is removed. After pg_upgrade, reindex full text search and pg_trgm indexes (PostgreSQL 19).
Upgrade steps
- List every place PostgreSQL 14 runs: servers, containers, managed instances, and the read replicas of each.
- Pick the target version, and check that your extensions, your hosting and your app's database driver support it.
- Take a full backup and restore it once somewhere else, so you know it works.
- Upgrade a copy first: a clone of the server, a snapshot restored as a new instance, or a staging container. Run pg_upgrade --check or your cloud's precheck on it.
- Run the app's tests against the copy and read the logs for permission, search_path and extension errors.
- Upgrade production in a quiet window, then refresh the planner statistics with vacuumdb --all --analyze-in-stages --missing-stats-only, as the pg_upgrade manual describes.
- Watch the logs and slow queries for a few days, then remove the old cluster.
If you cannot upgrade in time
On a managed service, budget for extended support from February or March 2027 and write down the date you will upgrade, since you pay for every month. On Ubuntu 22.04, the system package is patched until May 2027, which buys time to plan both upgrades together. Everywhere else, make sure the database is not reachable from the internet, allow connections only from the app's servers, and keep everything around it patched.
Questions
Will my database stop working?
No. PostgreSQL 14 keeps running. What stops is the stream of security and bug fixes from the PostgreSQL project.
Is moving to PostgreSQL 15 enough?
For a year. Its fixes end on 11 November 2027, so aim for 17 or 18 unless an extension or your host holds you back.
Can I go straight from 14 to 18?
Yes. pg_upgrade, a dump and restore, and logical replication all go from 14 to any newer version in one step. Read the changes of every version in between first.
My database is on Amazon RDS. Will AWS upgrade it for me?
It depends on one setting. With Extended Support on, the default for instances created with the CLI, the API or CloudFormation, RDS keeps running 14 and charges for it from 1 March 2027 until 28 February 2030. With it off, the console default, AWS upgrades the instance itself on or shortly after 28 February 2027. Check the setting now.
Can PatchTempo do the upgrade?
Yes. It is part of the one-off hardening upgrade: tried on a copy first, rolled out after your approval, with a backup to switch back to. Start with the free audit.
Sources
- PostgreSQL versioning policy
- PostgreSQL 14.25, the final 14 release
- PostgreSQL 19 released
- PostgreSQL: upgrading a cluster
- PostgreSQL: pg_upgrade
- PostgreSQL: logical replication restrictions
- PostgreSQL 15 release notes
- PostgreSQL 16 release notes
- PostgreSQL 17 release notes
- PostgreSQL 18 release notes
- PostgreSQL 19 release notes
- postgresql-14 package in Ubuntu 22.04
- postgresql-16 package in Ubuntu 24.04
- PostgreSQL versions in Ubuntu
- PostgreSQL versions in Debian
- Ubuntu release cycle
- pg_upgradecluster manual (Ubuntu 24.04)
- Postgres image on Docker Hub
- Amazon RDS for PostgreSQL release calendar
- Amazon RDS Extended Support
- Amazon RDS Extended Support enrolment
- Amazon RDS Extended Support charges
- Amazon RDS for PostgreSQL pricing
- Amazon RDS: PostgreSQL major version upgrades
- Azure Database for PostgreSQL version policy
- Azure Database for PostgreSQL Extended Support
- Cloud SQL for PostgreSQL versions
- Cloud SQL for PostgreSQL extended support
- Cloud SQL: in-place major version upgrade