S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-13

PostgreSQL 14 EOL: In-Place Upgrade to 18 in Minutes

Watch the walkthrough in PostgreSQL 14 EOL: In-Place Upgrade to 18 in Minutes, published 2026-11-13. This companion guide collects the commands and links in one place, grounded in the video description plus the PostgreSQL 18.7 release announcement, the 14.25 release notes, the PGDG apt repository, and the PGDG apt wiki. All four links were re-verified reachable for this guide. Every command below is untested here; the video's simulated terminal frames recreate output from a real sandbox test run of 14.25 to 18.7 with data verified intact.

Why upgrade now

PostgreSQL 14 reached end of life on November 12, 2026, so it gets no more security fixes. The final 14 minor is 14.25, released alongside 18.7, and the video upgrades a running PostgreSQL 14 cluster to 18.7 on Ubuntu 24.04 in place. Downtime is minutes, and the old 14 cluster stays on port 5433 as a fallback until you drop it.

Check the prerequisites

You need Ubuntu 24.04 with sudo, a running PostgreSQL 14 cluster, free disk around twice your database size, and a backup, which is made in the next section.

Prerequisites card listing sudo plus a running PostgreSQL 14 cluster, 2x free disk, and a backup first
Prerequisites card listing sudo plus a running PostgreSQL 14 cluster, 2x free disk, and a backup first (Still from the walkthrough video.)

Back up everything first

Take a full logical backup before touching the clusters. This is a destructive-operation guardrail: if the upgrade goes wrong, this file is your way back.

Add the PGDG repo and install 18 side by side

Ubuntu 24.04 does not ship PostgreSQL 18, so the video adds the official PostgreSQL Global Development Group apt repository and installs 18 alongside 14 rather than replacing it. The key ID below is the official PGDG signing key.

Simulated terminal adding the PGDG key and repo, then installing PostgreSQL 18 beside 14
Simulated terminal adding the PGDG key and repo, then installing PostgreSQL 18 beside 14 (Still from the walkthrough video.)

Run the upgrade and verify

The Debian pg_upgradecluster wrapper copies the data into the new cluster using the pg_upgrade engine, then parks the old 14 cluster on port 5433 while 18 takes the default 5432.

Simulated terminal running pg_upgradecluster with ok status lines and an Upgrade Complete banner
Simulated terminal running pg_upgradecluster with ok status lines and an Upgrade Complete banner (Still from the walkthrough video.)

Watch the walkthrough

Watch on YouTube