Join our Newsletter — 33% off our NHI Course
Home› Guides› PostgreSQL End of Life Versions Guide: Support Windows,…
Guide Vulnerability Management

PostgreSQL End of Life Versions Guide: Support Windows, Dates and Safe Upgrades

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 16 min read
On this page

Every PostgreSQL major version is supported for five years and then stops receiving security fixes, so any cluster still on 13 or older is already running unsupported code and PostgreSQL 14 reached its scheduled final release on 12 November 2026. This guide sets out the community support policy, the official dates for every recent major version, how to find the database servers and the service accounts that depend on them, and how to plan an upgrade that you can test and roll back.

All dates on this page come from the PostgreSQL Global Development Group's own versioning policy and release roadmap, checked on 19 November 2026. Packaged builds from operating system vendors and managed database services can follow their own support calendars, so check those separately for anything you do not build or install from the community packages.

Key takeaways

  • The PostgreSQL project supports each major version for five years after its first release. After that a final minor release ships and the version is end of life, with no further bug or security fixes.
  • PostgreSQL 13 reached end of life on 13 November 2025 and PostgreSQL 12 on 21 November 2024. Anything at 12 or below is unsupported.
  • PostgreSQL 14 has a final release date of 12 November 2026 on the versioning page. Treat 14 as end of life now and plan its replacement as urgent work.
  • Supported versions on the policy page are 15, 16, 17 and 18, with final releases in November 2027, 2028, 2029 and 2030 respectively.
  • The project recommends always running the current minor release of your major version. Minor upgrades are binary swaps with no dump and restore.
  • Major upgrades need pg_upgrade or a dump and reload, and logical replication is an option for low downtime cutovers. Each method has rollback limits you must plan for before you start.
  • Database upgrades touch identities: application roles, replication users, backup agents and monitoring accounts all need to be inventoried and retested on the new cluster.

What is changing and why

PostgreSQL is released by the PostgreSQL Global Development Group, which ships a new major version containing new features about once a year. Each major version then receives bug fixes and, where needed, security fixes in minor releases that come out at least once every three months. If the release team decides a critical bug or security fix cannot wait for the scheduled date, it can publish a release outside the normal roadmap.

The support window is fixed and predictable. The project supports a major version for five years after its initial release. After that, a final minor version is released and the software becomes unsupported. In practice this means that each autumn one major version drops off the supported list, at the same time as the November minor release.

The reason this matters for security teams is simple. Once a version is past its final release, any vulnerability found later in the server, its bundled tools or its client libraries will be fixed only in supported branches. An end of life cluster stays exposed, and nothing in the cluster itself warns you. Audit frameworks treat that as a finding in its own right: NIST SP 800-53 control SA-22 Unsupported System Components asks organisations to replace components once vendor support ends or to justify and document alternative support.

The version numbering also changed in a way that still confuses inventories. From PostgreSQL 10 onwards, the first number is the major version, so 10 to 11 is a major upgrade and 17.11 to 17.12 is a minor one. Before 10, the major version was the first two numbers, so 9.5 and 9.6 are different major versions and 9.6.23 to 9.6.24 was a minor update. Any script that parses version strings should handle both formats.

Official timeline and current status

The table below reproduces the dates from the PostgreSQL versioning page as at 19 November 2026. "Final release" is the date of the last minor release for that branch, which is also its end of life date.

Major versionCurrent minorFirst releaseFinal release (end of life)Status on 19 Nov 2026
1818.725 September 202514 November 2030Supported
1717.1226 September 20248 November 2029Supported
1616.1614 September 20239 November 2028Supported
1515.2013 October 202211 November 2027Supported, one year left
1414.2530 September 202112 November 2026Final release date passed (see note)
1313.2324 September 202013 November 2025End of life
1212.223 October 201921 November 2024End of life
1111.2218 October 20189 November 2023End of life
1010.235 October 201710 November 2022End of life
9.69.6.2429 September 201611 November 2021End of life
9.59.5.257 January 201611 February 2021End of life

Note on PostgreSQL 14: the versioning page lists 12 November 2026 as the final release for 14, and 14.25 as its current minor. At the time we checked, the same table still showed 14 in the supported column, which we read as the page not yet being updated after the final release. Plan on the basis that 14.25 is the last release you will receive and that no further fixes will follow.

Looking ahead, the roadmap lists planned minor releases on 11 February 2027, 13 May 2027, 12 August 2027 and 11 November 2027, and gives 19 November 2026 as the planned date for PostgreSQL 19. Under the five year policy, the November 2027 release will be the last for PostgreSQL 15. If you are choosing a target version today, picking 17 or 18 gives you the longest runway before you need to repeat the exercise; 19 is new enough that many teams will want to wait for early minor releases and for their extensions to certify against it.

Who and what is affected

The obvious target is any self-managed PostgreSQL server running 14 or older. The less obvious ones are where most of the real exposure sits:

  • Embedded and bundled databases. Many commercial and open-source products ship their own PostgreSQL instance for configuration or metrics. These are often invisible to the database team and may be several majors behind.
  • Containers and images. Images pinned to an old major tag keep running the same version indefinitely. A container that was "temporary" three years ago can easily still be on 12.
  • Distribution packages. Operating system packages may be patched by the distribution on its own schedule. That is a separate support promise from the community one, and you need the distribution's own statement to rely on it.
  • Managed database services. Cloud providers publish their own deprecation calendars and extended support programmes, which can differ from community dates. Read the provider's documentation rather than assuming either way.
  • Client libraries and tools. libpq, psql, pg_dump and driver packages are versioned with or alongside the server. Old client binaries on jump hosts and in CI images often outlive the servers they were installed for.
  • Identities around the database. Application roles, replication users, backup service accounts, monitoring agents and any human administrator accounts in pg_hba.conf all have to keep working after an upgrade. Each one is a non-human identity with credentials somewhere: in a secrets manager, a .pgpass file, an environment variable or a connection string.

Teams that already worked through the Node.js End of Life Versions or the MySQL 8.0 End of Life Guide will recognise the pattern: the runtime itself is the easy part, and the dependencies and credentials around it take the time.

Finding affected systems and identities

Start with what you can query directly, then widen to what you can only infer.

Ask the servers

On any server you can connect to, SELECT version(); returns the full version string, and SHOW server_version_num; returns a numeric form that is easier to compare in scripts. Run this from your configuration management or monitoring tool across every known host and record the result against the asset in your inventory. Compare the minor version against the "current minor" column in the official table: a supported major that is several minors behind is also a finding, because the project recommends always running the current minor release.

Look for the servers you do not know about

  • Network scans for the PostgreSQL port across server, container and cloud ranges, followed by a version check where you are authorised to connect.
  • Software inventory and package data from endpoint and server agents, looking for PostgreSQL server packages and data directories.
  • Container registries and image manifests, searching for base images and tags that reference older majors.
  • Infrastructure as code repositories, searching for engine version parameters in database modules and Helm charts.
  • Vendor product documentation for appliances and applications that embed a database.

Map the identities

For each in-scope cluster, export the role list with \du in psql or a query against pg_roles, and review pg_hba.conf for the hosts, users and authentication methods that are allowed in. Then match each role to an owner and a consuming system: which application, which backup or replication job, which monitoring tool. Roles that nobody can claim are candidates for removal before the upgrade, not for copying across. If any connections still use the older md5 password method, plan the move to scram-sha-256 as part of the same change window. Our PostgreSQL Security Guide covers role design and authentication in depth.

Migration options

The versioning policy is clear that major versions change the data directory format, so you cannot simply swap binaries. There are three supported routes. You can jump straight from an old major to a new one without installing the versions in between, but the project recommends reading the release notes of every intervening major version first, because behaviour changes accumulate.

Minor upgrades first

If a cluster is on a supported major but behind on minors, fix that now. Minor upgrades do not need a dump and restore: you stop the server, install the new binaries and restart. Some minor releases need extra steps, so read the release notes. The community considers minor upgrades less risky than staying on an old minor.

pg_upgrade

pg_upgrade moves a cluster to a newer major version without a full dump and reload. It creates new system catalogues and reuses the existing user data files, and it supports upgrades from 9.2 and later. The broad sequence in the documentation is:

  1. Install the new version's binaries alongside the old ones.
  2. Initialise a new cluster with initdb using compatible settings, and do not start it.
  3. Install the shared object files for every extension the old cluster uses. Do not run CREATE EXTENSION, because the schema definitions come across from the old cluster.
  4. Run the new version's pg_upgrade with --check first. This checks both clusters without changing data and lists manual adjustments you will need.
  5. Stop both servers, run the upgrade, adjust pg_hba.conf and other configuration, then start the new server.
  6. Run any post-upgrade scripts that pg_upgrade generated, and regenerate optimiser statistics with vacuumdb.
  7. Upgrade or rebuild standbys, then delete the old cluster once you are satisfied.

The transfer mode you pick decides your rollback options. The default copy mode leaves the old cluster untouched. Link mode, using hard links, is fastest and uses least disk space, but once the new cluster has been started it is unsafe to use the old one and you would need to restore from backup. Clone mode gives similar speed while leaving the old cluster intact, on file systems that support reflinks. The newer swap mode can be faster still on clusters with many relations, but it modifies the old cluster destructively. The documentation's own advice is that if you want link mode speed without modifying the old cluster, use clone mode where available, or copy the cluster and upgrade the copy in link mode.

Two gaps catch teams out. First, pg_upgrade carries most optimiser statistics across, but not statistics created with CREATE STATISTICS, custom statistics added by extensions or the cumulative statistics system's counters, so plan the documented vacuumdb analyse steps. Second, tables with columns of certain reg* types, such as regproc or regnamespace, block the upgrade; --check will flag them.

Dump and reload

The versioning policy names a dump and reload as the other standard route. It is slower for large databases but produces a clean new cluster, and it is a good fit for small databases or when you also want to change hosts, encodings or layout at the same time.

Logical replication

Logical replication can replicate between different major versions, which lets you build a new cluster on the target version, keep it in sync and then cut applications over with a short pause. The documented restrictions shape the plan:

  • Schema and DDL commands are not replicated. Copy the initial schema with pg_dump --schema-only and freeze schema changes, or apply them to the subscriber first, during the migration.
  • Sequence data is not replicated. Before switching over, update sequences on the new cluster to the latest values, or the first inserts after cutover may collide with existing keys.
  • Large objects are not replicated, and only tables, including partitioned tables, can be replicated. Views, materialised views and foreign tables need to be recreated by other means.
  • Truncating tables linked by foreign keys to tables outside the subscription will fail on the subscriber.

The replication connection itself needs a dedicated role with only the rights it needs, stored in your secrets manager and removed after cutover. A replication user created for a weekend migration and never deleted is a common long-lived credential.

Testing and rollback

Decide the rollback route before you choose the upgrade method, not after.

  • Take and test a backup first. Whatever method you use, a verified restore is your last line of rollback. Our Database Backup Security Guide covers protecting those backups and the accounts that can reach them.
  • Rehearse on a copy. Restore production to a test environment, run pg_upgrade --check or build the logical replica there, and time each step. That rehearsal also shows you which extensions need new builds.
  • Test every identity. Connect as each application role, the replication user, the backup agent and the monitoring account. Authentication changes in pg_hba.conf and password method changes are the most common cause of "the upgrade worked but the app is down".
  • Run application regression tests. Read the release notes for each major version you are skipping and look for removed functions, changed defaults and planner behaviour that your queries rely on.
  • Know when rollback stops being cheap. With copy or clone mode, the old cluster can be restarted. With link mode after the new cluster has started, or with swap mode, rollback means restoring from backup. With logical replication, once applications write to the new cluster, falling back means reverse replication or accepting data loss.

Risks of doing nothing

Running an end of life PostgreSQL version does not fail loudly. The cluster keeps working, which is exactly why these servers survive for years. The risks build quietly:

  • Unfixed vulnerabilities. Security fixes found after the final release go only into supported branches. You cannot patch your way out on an end of life major.
  • Audit and compliance findings. Unsupported components are a routine finding under SA-22 and under patch management expectations such as those in NIST SP 800-40 Rev. 4.
  • Harder upgrades later. The longer you wait, the more major versions of behaviour change you have to absorb in one jump, and the fewer people remember how the old system was built.
  • Stale credentials. Old clusters tend to carry old roles, shared passwords and weak authentication methods that nobody has reviewed. These become an easy way in for an attacker who reaches the network.
  • Ecosystem drift. Extensions, drivers and tools eventually stop testing against old majors, so even non-security bugs become harder to fix.

If you cannot upgrade a particular cluster in time, record a risk acceptance with an owner and a date, restrict network access to the hosts that need it, rotate the credentials it uses, and monitor it more closely than supported systems. Our Database Patching guide covers how to keep that compensating work on a schedule.

Practitioner checklist

  • Record the current major and minor version of every PostgreSQL cluster, including embedded, containerised and managed instances.
  • Flag every cluster on 14 or older as end of life, and every cluster on 15 as due within a year.
  • Bring all supported clusters to the current minor release now.
  • Pick a target major (17 or 18 gives the longest support runway) and confirm your extensions support it.
  • Choose pg_upgrade, dump and reload or logical replication per cluster, and write down the rollback route for each.
  • Run pg_upgrade --check or a full rehearsal against a restored copy and fix what it reports.
  • Inventory every role and pg_hba.conf entry, remove unowned roles, and move remaining password logins to scram-sha-256.
  • Create any temporary replication or migration accounts with least privilege, store them in your secrets manager and delete them after cutover.
  • Test connections for every application, backup, replication and monitoring identity on the new cluster before cutover.
  • After cutover, regenerate statistics, update sequences if you used logical replication, and decommission the old cluster and its credentials.
  • Add the next end of life date to your calendar and your technology lifecycle register.

Standards and references

Related NHI Mgmt Group resources: Node.js End of Life Versions · Java End of Life Versions · PostgreSQL Security Guide · Database Patching

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.