PostgreSQL 18 vs 19

Support windows, end-of-life dates and latest versions side by side.

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.

PostgreSQL 18 PostgreSQL 19
ReleasedSep 25, 2025Nov 19, 2026
StatusSupportedSupported
Active support until——
End of lifeNov 14, 2030
in 3 years
Nov 19, 2031
in 4 years
Total support5 years, 1 month5 years
Latest version18.7
Nov 9, 2026
19.0
Nov 16, 2026
LTSNoNo

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