The PostgreSQL project supports each major version for five years after its first release. After the final minor release, there are no more security or bug fixes from the community.
The dates
| Version | First released | End of life |
|---|---|---|
| 14 | 30 September 2021 | 12 November 2026 |
| 15 | October 2022 | November 2027 |
| 16 | September 2023 | November 2028 |
Managed services such as RDS or Cloud SQL run their own schedules, usually with a later deprecation and sometimes a forced upgrade. Check your provider’s dates in addition to the project’s.
How to upgrade
pg_upgradeupgrades the data directory in place. Use--linkfor speed and take a backup first.- Dump and restore with
pg_dumpandpg_restoreis simple and slow for large databases. - Logical replication replicates to a new server on the newer version, so the switch is a short cutover.
A checklist
- Read the release notes of every major version between yours and the target.
- Test extensions. Many need a version that matches the new server.
- Run the application tests against a restored copy on the new version.
- Run
ANALYZEafter the upgrade, because statistics are not always carried over. - Keep a tested rollback: the old server and a backup.
Upgrades produce findings: a query that got slower, an extension that needed a rebuild. Save them where the next team member and their coding agent will find them.
Sources
Checked on 26 October 2026. Exact day for version 15 to be confirmed on the project’s page.