PostgreSQL 15 vs 16
Which should you run?
Pick PostgreSQL 16 for new installs. It's supported until Nov 9, 2028, 11 months longer than 15, which ends Nov 11, 2027.
15
16
20222028
Supported
Security fixes only
Today
| PostgreSQL 15 | PostgreSQL 16 | |
|---|---|---|
| Released | Oct 13, 2022 | Sep 14, 2023 |
| Status | Supported | Supported |
| Active support until | — | — |
| End of life | Nov 11, 2027 in 11 months | Nov 9, 2028 in 1 year |
| Total support | 5 years | 5 years, 1 month |
| Latest version | 15.20 Nov 9, 2026 | 16.16 Nov 9, 2026 |
| LTS | No | No |
How to upgrade from PostgreSQL 15 to 16
Minor releases (e.g. 16.x to 16.16) never need a dump or pg_upgrade: install the packages and restart. A new major version does.
Ubuntu / Debian (PGDG repository)
sudo apt update
sudo apt install --only-upgrade postgresql-16
sudo systemctl restart postgresql New major version on Ubuntu / Debian
sudo apt install postgresql-16
pg_lsclusters Then run sudo pg_upgradecluster <old-version> main. It migrates the old cluster onto version 16.
Docker
docker pull postgres:16 Official upgrade guide ↗ Back up first, and test on a non-production machine when you move to a new branch.
Quick answers
- Should I use PostgreSQL 15 or 16?
- Pick PostgreSQL 16 for new installs. It's supported until Nov 9, 2028, 11 months longer than 15, which ends Nov 11, 2027.
- How long are PostgreSQL 15 and 16 supported?
- PostgreSQL 15: supported until Nov 11, 2027. PostgreSQL 16: supported until Nov 9, 2028.
- What are the latest PostgreSQL 15 and 16 versions?
- PostgreSQL 15 is at 15.20 (Nov 9, 2026), and PostgreSQL 16 is at 16.16 (Nov 9, 2026).
More PostgreSQL comparisons
Official release policy · Checked 3 hours ago