PostgreSQL 18 vs 19
Which should you run?
Pick PostgreSQL 19 for new installs. It's supported until Nov 19, 2031, 1 year longer than 18, which ends Nov 14, 2030.
18
19
20252031
Supported
Security fixes only
Today
| PostgreSQL 18 | PostgreSQL 19 | |
|---|---|---|
| Released | Sep 25, 2025 | Nov 19, 2026 |
| Status | Supported | Supported |
| Active support until | — | — |
| End of life | Nov 14, 2030 in 3 years | Nov 19, 2031 in 4 years |
| Total support | 5 years, 1 month | 5 years |
| Latest version | 18.7 Nov 9, 2026 | 19.0 Nov 16, 2026 |
| LTS | No | No |
How to upgrade from PostgreSQL 18 to 19
Minor releases (e.g. 19.x to 19.0) 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-19
sudo systemctl restart postgresql New major version on Ubuntu / Debian
sudo apt install postgresql-19
pg_lsclusters Then run sudo pg_upgradecluster <old-version> main. It migrates the old cluster onto version 19.
Docker
docker pull postgres:19 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 18 or 19?
- Pick PostgreSQL 19 for new installs. It's supported until Nov 19, 2031, 1 year longer than 18, which ends Nov 14, 2030.
- How long are PostgreSQL 18 and 19 supported?
- PostgreSQL 18: supported until Nov 14, 2030. PostgreSQL 19: supported until Nov 19, 2031.
- What are the latest PostgreSQL 18 and 19 versions?
- PostgreSQL 18 is at 18.7 (Nov 9, 2026), and PostgreSQL 19 is at 19.0 (Nov 16, 2026).
More PostgreSQL comparisons
Official release policy · Checked 3 hours ago